TIL that you can pass variables to Ansible’s import_playbook module
Using Ansible’s import_playbook module I was always under the impression that the module accepts no parameters and boldly stated so! However another commentor helpfully pointed out that I was wrong.
Here’s an example. The first playbook (importer_playbook.yml
):
- import_playbook: imported-playbook.yml
vars:
foo: hunter2
… simply imports a second …
more ...