how to use delegate_to with Ansible tower

25 views
Skip to first unread message

Neetu

unread,
Oct 2, 2018, 2:05:34 PM10/2/18
to Ansible Project
Hi,

I have a task which I am delegating to a different host .

Playbook is running on dev host, and the task is being delegated to qa host to run. 

- name: "Delegate to qa"
    shell: " task "
    delegate_to: "{{ qa_host }}" 
    become_user: "{{ qa_user }}"

If I run it from my local terminal, it works. How ever from tower it fails because of 'permission denied'.


Machine credentials for dev are passed to the playbook during run time. Is there a way we can send the credentials for qa host in tower ?


Thanks,
Neetu
Reply all
Reply to author
Forward
0 new messages