1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-25 18:07:47 +00:00
⚙️ A GitHub Action for running Ansible playbooks
Find a file
Dawid Dziurla 905e9bd607
README: v2
2020-05-03 11:59:16 +02:00
.github/workflows rewrite in javascript 2020-05-03 11:55:12 +02:00
node_modules/@actions rewrite in javascript 2020-05-03 11:55:12 +02:00
action.yml rewrite in javascript 2020-05-03 11:55:12 +02:00
hosts rewrite in javascript 2020-05-03 11:55:12 +02:00
LICENSE init 2020-03-21 17:06:40 +01:00
main.js rewrite in javascript 2020-05-03 11:55:12 +02:00
package-lock.json rewrite in javascript 2020-05-03 11:55:12 +02:00
package.json rewrite in javascript 2020-05-03 11:55:12 +02:00
playbook.yml playbook: hosts=all 2020-03-22 12:47:43 +01:00
README.md README: v2 2020-05-03 11:59:16 +02:00

Run Ansible playbook Github Action

An action that executes given Ansible playbook on selected hosts.

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