I have a playbook that copies files to remote hosts whose hostnames are dynamically derived in the playbook. if the play is run from the control node it works perfectly if I run from awx I get an error on the delegation
- name: Copy app to remote
copy:
src: '{{ path_local_to_deploy }}/{{ app_to_deploy }}'
dest: '/tmp/{{ app_to_deploy }}'
owner: root
group: root
mode: 0644
remote_src: true
delegate_to: mvlmgmt002.sidi.mpi.it
become: true
tags: action
I also tried using delegation on the control node but it fails to copy the files to the remote hosts but copies to /tmp of the control node