⚙️ A GitHub Action for running Ansible playbooks
Go to file
dependabot-preview[bot] 16c5208cd3
build(deps): bump yaml from 1.10.0 to 1.10.2
Bumps [yaml](https://github.com/eemeli/yaml) from 1.10.0 to 1.10.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v1.10.0...v1.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-15 04:43:20 +00:00
.github/workflows workflows: always run in test/ dir 2021-02-11 17:28:23 +01:00
node_modules package: add yaml 2020-12-09 11:56:40 +01:00
test put test stuff intooo... test/ dir 2021-02-11 17:28:46 +01:00
action.yml action: add requirements 2020-12-06 17:05:44 +01:00
LICENSE init 2020-03-21 17:06:40 +01:00
main.js main: parse requirements yaml and run appropriate commands 2020-12-09 11:57:43 +01:00
package-lock.json build(deps): bump yaml from 1.10.0 to 1.10.2 2021-03-15 04:43:20 +00:00
package.json build(deps): bump yaml from 1.10.0 to 1.10.2 2021-03-15 04:43:20 +00:00
post.js post: check if file exists before unlinking 2020-12-06 16:54:45 +01:00
README.md README: clarify OS 2020-05-03 18:04:31 +02:00

Run Ansible playbook Github Action

An action that executes given Ansible playbook on selected hosts.

Should work on any OS, if ansible-playbook command is available in PATH.

Usage

- name: Run playbook
  uses: dawidd6/action-ansible-playbook@v2
  with:
    playbook: deploy.yml
    directory: ./
    key: ${{secrets.SSH_PRIVATE_KEY}}
    inventory: |
      [all]
      example.com

      [group1]
      example.com      
    vault_password: ${{secrets.VAULT_PASSWORD}}
    options: |
      --limit group1
      --extra-vars hello=there
      --verbose