This may be your email wrapping things, but this looks bad to me.
Can you share what you have on gist.github.com so we can see instead?
Instead of this:
- 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"
I would do this:
- 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"
You could also use equal signs instead of the colons.
Just wondering if the indents are actually what's freaking out the parser,
but I'd need to see unformatted by your email program.
On Wed, Apr 16, 2014 at 3:16 AM, Andrew Holway <[email protected]>wrote:
> As I said. I have tried many combinations of quotes (including no
> quotes) to make this work. It currently looks like this:
>
> 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"
>
> But I am still getting this error.
>
> 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 1
>
> 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:
>
>
> On 16 April 2014 01:38, Brian Coca <[email protected]> wrote:
> > have you tried?
> >
> > with_items:
> > - foo
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "Ansible Project" group.
> > To unsubscribe from this topic, visit
> >
> https://groups.google.com/d/topic/ansible-project/GGmm9nMelLo/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CADn%2BHsxYpjrvuz7ycskNTzPLwKetcm%3Dd%2BCyDrwK%3DX15MSXZh_Q%40mail.gmail.com
> .
> >
> > 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/CAEiui-t2GBNsutHHsrsU1cu9LDndSvA%2BoKnDyudCTdOfdugptg%40mail.gmail.com
> .
> 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%2BnsWgx6KN5vAoSnk7JY_Pm67VUKomxyY7Zf-pmBi%2B0KPRCNSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.