Can someone please help me understand what is happening here?
On this task I worked through some file errors when ansible through errors, then once i worked through those, I ran it successfully, submitted for completion and it came back with an error and told me to run it manually which I did and it worked fine a second time.
I see nothing wrong with any of it and I get no feedback as to why the system says it wont run when it runs fine for me no errors.
Here is my final inventory file and my final playbook file:
Inventory
all:
hosts:
stapp01:
ansible_host: stapp01.stratos.xfusioncorp.com
ansible_user: tony
ansible_password: Ir0nM@n
stapp02:
ansible_host: stapp02.stratos.xfusioncorp.com
ansible_user: steve
ansible_password: Am3ric@
stapp03:
ansible_host: stapp03.stratos.xfusioncorp.com
ansible_user: banner
ansible_password: BigGr33n
Playbook
- name: Create an empty file on the server
hosts: all
become: true
tasks:- name: Creating the empty file
ansible.builtin.file:
path: /opt/webapp.txt
state: touch
owner: “{{ owner_name }}”
group: "{{ owner_name }}
mode: ‘0644’
- name: Creating the empty file
