thor@jumphost ~/ansible$ cat inventory
stapp03 ansible_host=172.16.238.12 ansible_user=banner ansible_ssh_common_args=‘-o StrictHostKeyChecking=no’
thor@jumphost ~/ansible$ cat playbook.yaml
- name: Create empty file
hosts: all
become: yes
tasks:- file:
path: /tmp/file.txt
state: touch
- file:
thor@jumphost ~/ansible$ ansible-playbook -i inventory playbook.yaml
PLAY [Create empty file] ****************************************************************
TASK [Gathering Facts] ******************************************************************
fatal: [stapp03]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”, “unreachable”: true}
PLAY RECAP ******************************************************************************
stapp03 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
