i have a playbook that reads a csv file which as hostnames, and some other columns, and i would like for each line of this csv file to call another playbook to be run on the hostname that i read from the csv 1st column
But i’m getting this error: [localhost]: FAILED! => {“reason”: "conflicting action statements: hosts, tasks
test_csv.yml:
hosts: localhost
connection: local
gather_facts: no
tasks:
i have a playbook that reads a csv file which as hostnames, and some other columns, and i would like for each line of
this csv file to call another playbook to be run on the hostname that i
read from the csv 1st column
But i'm getting this error: [localhost]: FAILED! => {"reason": "conflicting action statements: hosts, tasks
Yes, thank you, i now fixed it by having only the task on the 2nd yml (the one i include with include_task) and using the delegate_to on that task to make it execute on each host i got from the csv file.