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:
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: