Definitely don't quote individuals like this, you'll end up with quotes in
the paths!
copy: src=/tmp/"{{ freeipaserver_ip }}"/var/lib/ipa/replica-info-"{{
ansible_hostname }}".gpg dest=/var/lib/ipa/replica-
info-"{{ ansible_hostname }}".gpg owner=foo group=foo mode=0644
On Tue, Apr 15, 2014 at 6:05 PM, James Tanner <[email protected]> wrote:
> Also, you don't need to quote the entire argset:
>
>
> copy: src=/tmp/"{{ freeipaserver_ip }}"/var/lib/ipa/replica-info-"{{
> ansible_hostname }}".gpg dest=/var/lib/ipa/replica-
> info-"{{ ansible_hostname }}".gpg owner=foo group=foo mode=0644
>
>
> On Tuesday, April 15, 2014 5:37:10 PM UTC-4, Andrew Holway wrote:
>
>> Hi,
>>
>> I cant get past this error. I've tried various combinations of quotes but
>> to no avail.
>>
>> Any ideas?
>>
>> ta,
>>
>> Andrew
>>
>>
>> [root@ansible ansible-catn-freeipa]# ansible-playbook freeipa.yml -i
>> hosts
>> ERROR: Syntax Error while loading YAML script, /root/ansible-catn-freeipa/
>> roles/replica/tasks/free-ipa-setup.yml
>> Note: The error may actually appear before this position: line 36, column
>> 9
>>
>> name: Pull file from ansible server
>> - copy: "src=/tmp/{{ freeipaserver_ip }}/var/lib/ipa/replica-info-{{
>> ansible_hostname }}.gpg dest=/var/lib/ipa/replica-info-{{
>> ansible_hostname }}.gpg owner=foo group=foo mode=0644"
>> ^
>> We could be wrong, but this one looks like it might be an issue with
>> missing quotes. Always quote template expression brackets when they
>> start a value. For instance:
>>
>> with_items:
>> - {{ foo }}
>>
>> Should be written as:
>>
>> with_items:
>> - "{{ foo }}"
>>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/60bfe7ff-1be2-47ed-b783-ea2735b2238b%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/60bfe7ff-1be2-47ed-b783-ea2735b2238b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxfhzM1tna4stg7ohXD_ypREyOH9htaKZXRJ%2B9v7cc3yQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.