Hi,
I’m trying to copy multiple files from the task/files folder but ansible shows an error:
FAILED! => {“reason”: "Syntax Error while loading YAML.\n did not find expected ‘,’ or ‘}’
And i don’t see what’s wrong…
- name: Copy different scripts
copy:
src: “{{ item.src }}”
dest: “{{ item.dest }}”
mode: “{{ item.mode }}”
owner: “{{ item.owner }}”
group: “{{ item.group }}”
with_items: - { item.src: {{ role_path }}/files/profile.d/oracle.sh, item.dest: /etc/profile.d/oracle.sh, item.mode: ‘0755’, item.owner: root, item.group: root }
- { item.src: {{ role_path }}/files/sudoers.oracle, item.dest: /etc/sudoers.d/oracle, item.mode: ‘0440’, item.owner: root, item.group: root }
- { item.src: {{ role_path }}/files/bash_profile, item.dest: /app/oracle/.bash_profile , item.mode: ‘0660’ , item.owner: oracle , item.group: oinstall }
- { item.src: {{ role_path }}/files/baseline_scripts, item.dest: /app/oracle/u01/local/Scripts, item.mode: ‘0750’, item.owner: oracle, item.group: oinstall }
anybody an idea ?
Cheers,
cybo