Ah, it was the single quotes that I was missing. Thank you.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To
On Monday, 5 November 2018 18:53:55 CET John Harmon wrote:
> How can I throw in a custom string? Everything I try seems to fail:
>
> Working:
> newname: "{{ oldname.stdout ~ ansible_date_time.date }}"
> Returns:
> myserver2018-11-05
>
> Desired:
> myserver-COPY-2018-11-05
newname: "{{ oldname.s
How can I throw in a custom string? Everything I try seems to fail:
Working:
newname: "{{ oldname.stdout ~ ansible_date_time.date }}"
Returns:
myserver2018-11-05
Desired:
myserver-COPY-2018-11-05
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" gr
Thank you
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@g
On Friday, 2 November 2018 22:35:01 CET John Harmon wrote:
> Awesome, that works! Using a large number for randomizing didn't even
> occur to me. Just one follow-up question. Can you explain to me what the
> tilde ~ is doing? Having a hard time finding info on it.
It Jinja for concatenate st
Awesome, that works! Using a large number for randomizing didn't even
occur to me. Just one follow-up question. Can you explain to me what the
tilde ~ is doing? Having a hard time finding info on it.
--
You received this message because you are subscribed to the Google Groups
"Ansible Proj
On Friday, 2 November 2018 21:49:29 CET John Harmon wrote:
> I have a variable called 'oldid' set to a value of
> '0004fb06b824b442d236a8b7'
>
> I wish to manipulate it so that I do the following:
> 1. strip off the last 12 characters (slicing?)
> 2. Re-add 12 more characters that are a
I have a variable called 'oldid' set to a value of
'0004fb06b824b442d236a8b7'
I wish to manipulate it so that I do the following:
1. strip off the last 12 characters (slicing?)
2. Re-add 12 more characters that are a random numbers between 0-9
Here is what I have, but unsure if I can e