GitHub Action
Play Ansible Playbook
Github Action for running Ansible Playbooks.
Name of the galaxy file in your workspace.
Required inventory
Name of the inventory file in your workspace.
Required playbook
Name of the playbook in your workspace.
Further limit selected hosts to an additional pattern.
Only run plays and tasks whose tags do not match these values.
Start the playbook at the task matching this name.
Only run plays and tasks tagged with these values.
Set additional variables as key=value.
Prepend paths to module library.
Run a check, do not apply any changes.
When changing (small) files and templates, show the differences in those files; works great with –check.
Clear the fact cache for every host in inventory.
Run handlers even if a task fails.
Outputs a list of matching hosts.
List all available tags.
List all tasks that would be executed.
Perform a syntax check on the playbook.
Specify number of parallel processes to use.
The vault identity to use.
The vault password to use. This should be stored in a Secret on Github.
Level of verbosity, 0 up to 4.
Use this key to authenticate the connection. This should be stored in a Secret on Github.
Connect as this user.
Connection type to use.
Override the connection timeout in seconds.
Specify common arguments to pass to sftp/scp/ssh.
Specify extra arguments to pass to sftp only.
Specify extra arguments to pass to scp only.
Specify extra arguments to pass to ssh only.
Run operations with become.
Privilege escalation method to use.
Run operations as this user. required: false
- name: Play Ansible Playbook
uses: arillso/action.playbook@master
with:
playbook: tests/playbook.yml
inventory: tests/hosts.yml
galaxy_file: tests/requirements.yml
env:
ANSIBLE_HOST_KEY_CHECKING: 'false'
ANSIBLE_DEPRECATION_WARNINGS: 'false'
Simon Baerlocher 💻 🤔 |
This project is under the MIT License. See the LICENSE file for the full license text.
(c) 2020, Arillso