Github Action for running Ansible Playbooks.
Specifies the path to the Ansible Galaxy requirements file.
Forces the reinstallation of roles or collections from the Galaxy file.
Sets the API key used for authenticating to Ansible Galaxy.
Defines the URL of the Ansible Galaxy API server to interact with.
Sets the path to the directory where Galaxy collections are stored.
Disables GPG signature verification for Ansible Galaxy operations.
Forces the installation of collections with their dependencies from Galaxy.
Ignores SSL certificate validation for Ansible Galaxy requests.
Lists HTTP status codes to ignore during Galaxy signature validation.
Specifies the path to the GPG keyring used with Ansible Galaxy.
Enables offline mode, preventing any requests to Ansible Galaxy.
Allows the installation of pre-release versions from Ansible Galaxy.
Sets the required number of valid GPG signatures for Galaxy content.
Defines the path to the Ansible Galaxy requirements file.
Specifies a specific GPG signature to verify for Galaxy content.
Sets the timeout in seconds for Ansible Galaxy operations.
Enables automatic upgrading of Galaxy collections to the latest version.
Disables automatic resolution of dependencies in Ansible Galaxy.
Required. Specifies one or more inventory host files for Ansible to use.
Required. List of playbooks to apply.
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 in a key=value format for the playbook.
Prepends specified paths to the module library path list.
Executes a dry run, showing what changes would be made without making them.
Shows the differences in files and templates when changing them.
Clears the fact cache for every host in the inventory.
Runs all handlers even if a task fails.
Outputs a list of matching hosts.
List all available tags.
List all tasks that would be executed.
Performs a syntax check on the playbook, without executing it.
Defines the number of parallel processes to use during playbook execution.
Specifies the identity to use when accessing an Ansible Vault.
The vault password to use. This should be stored in a Secret on Github.
Sets the verbosity level, ranging from 0 (minimal output) to 4 (maximum verbosity).
Use this key to authenticate the connection. This should be stored in a Secret on Github.
Defines the username for making connections.
Sets the type of connection to use (e.g., SSH).
Overrides the default connection timeout in seconds.
Specifies common arguments to pass to all SSH-based connection methods (SSH, SCP, SFTP).
Provides extra arguments to pass only to SFTP.
Provides extra arguments to pass only to SCP.
Provides extra arguments to pass only to SSH.
Enables privilege escalation, allowing operations to run as another user.
Specifies the method to use for privilege escalation (e.g., sudo).
Sets the user to impersonate when using privilege escalation.
- 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