Hi guys!
Inventory POC_ENV.yml file:
all:
children:
POC_ENV:
hosts:
TEST-NXOS2
TEST-NXOS3
vars:
ansible_ssh_private_key_file: /home/ansible/.ssh/id_rsa
ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
ansible_user: ansible
Playbook new_vlan_playbook.yml file:
(attachments)
vbotka
(Vladimir Botka)
2
Colon ':' is missing after the hostnames. Fix the inventory
all:
children:
POC_ENV:
hosts:
TEST-NXOS2:
TEST-NXOS3:
Without the colons the lines are concatenated. This is the reason of the error
'fatal: [TEST-NXOS2 TEST-NXOS3]: FAILED! ...'
HTH,
-vlado
Hi Vladimir,
Thank you! working now.
בתאריך יום שני, 6 בינואר 2020 בשעה 18:29:10 UTC+2, מאת Vladimir Botka: