dawidniezgodka/Run multiple Ansible playbooks
Run Ansible playbooks in phase that represent setup order
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| ansible_directory | Directory where Ansible files are located. | no | ansible |
| playbook_directory | Directory where playbook subfolders are located. Assumes that playbooks are located in the dir pointed to by ansible_directory. | no | playbooks |
| execution_order | Order in which to execute the playbooks (comma-separated list of folder names). | yes | — |
| requirements | JSON string mapping playbook names to galaxy requirement | no | — |
| private_key | The private key for running Ansible commands. | no | — |
| inventory_file_path | The path to the inventory file. Assumes that the file is located in the dir pointed to by ansible_directory. | no | — |
| known_hosts | Content of the known hosts. If not provided, the host key checking is disabled. | no | — |
| extra_options_string | A multi-line string of extra options to pass to ansible-playbooks. Please provide the options in the following way: 1. each group of options should be separated by double angle brackets (<< >>) 2. each option in a group should be separated by a new line 3. extra variables that should be applied to all playbooks should be in the group name <<all>> | no | — |
| extra_options_file | A path to a file containing extra options to pass to ansible-playbooks. The path should be relative to the repository root. | — | — |
| secrets | A JSON string mapping secret names to their values. The secret names should be the same as the ones used in the playbooks. | no | — |
| sudo | Whether to use sudo for executing commands | no | false |
Outputs
| name | description |
|---|---|
| results | Output from each playbook run in JSON format. |