Ansible, ansible-playbook, playbook.yml:
ansible-playbook -i /env/dev testRole.yml
ERROR! Unexpected Exception: 'NoneType' object is not iterable
Solution:
Look like you are testing the role where no task define in tasks/main.yml file:
.
├── defaults
│ └── main.yml
├── handlers
│ └── main.yml
├── meta
│ └── main.yml
├── README.md
├── tasks
│ └── main.yml
├── tests
│ ├── inventory
│ └── test.yml
└── vars
└── main.yml
Was tasks/main.yml
---
# tasks file for
Add the any Ansible module then it will resolved this issue. e.g.
Now your
tasks/main.yml
---
- name: Install zip/unzip util
yum: name={{ item }} state=present
with_items:
- "zip"
- "unzip"
Save and run it!!!
ansible-playbook -i /env/dev testRole.yml
PLAY [localhost] *********************************************
TASK [zip : Install zip/unzip util] *********************************
ok: [localhost] => (item=[u'zip', u'unzip'])
TASK [hybrisProvisionInstance : Install zip/unzip util] *****************
ok: [localhost] => (item=[u'zip', u'unzip'])
PLAY RECAP ************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
Happy learning and implementation!!!
Coin Casino Review 2021 | Bonuses, Free Spins & Games
ReplyDeleteCasino หาเงินออนไลน์ Name. Name. Coin Casino. 인카지노 Bonus. Casino. Deposit Methods. Deposit Methods. Paylines, Bonus. Game. Bonus. Games. Casino. Deposit Methods. septcasino Paylines, Bonus.
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
L0Xİ5
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
4SHİC