On Sun, 25 Aug 2019 09:12:57 -0700 (PDT)
Chrono 7 <chrono...@gmail.com> wrote:

> I'd like to know how to conditionally import a playbook.
> [...]
> - name: Car required
>   import_playbook: determine_car_information.yaml
>   when: car_required == True

It's not possible. "import_playbook" is not a task. Conditions don't apply
here. It's an open issue
Conditionally import_playbook aka include_playbook #34281
https://github.com/ansible/ansible/issues/34281

Cheers,

        -vlado

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20190825194242.618b3e6a%40gmail.com.

Attachment: pgpSQ4dToPOH_.pgp
Description: OpenPGP digital signature

Reply via email to