I have the following playbook. If I comment out the line for import_playbook, the error goes away. Can anybody see what is wrong with this? I am guessing a syntax error, but I can’t seem to find it. Thanks in advance!:
`
I have the following playbook. If I comment out the line for import_playbook, the error goes away. Can anybody see what is wrong with this? I am guessing a syntax error, but I can’t seem to find it. Thanks in advance!:
`
import_playbook cannot be used within a play. Your play starts with - hosts: "{{ host }}". Your import_playbook would need to come either before that, or after your fail task.
Maybe you are looking for import_tasks instead?
Matt, thank you. I wasn’t aware of import_tasks, but it does what I want it to do. Thanks again!