1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-22 07:26:25 +00:00
⚙️ A GitHub Action for running Ansible playbooks
Find a file
Dawid Dziurla d28d9989a8
Merge pull request #14 from dawidd6/check-file-exists
Check if file exists before unlinking
2020-12-06 16:56:26 +01:00
.github/workflows workflows: test running the action twice 2020-12-06 16:54:32 +01:00
node_modules/@actions node_modules: update 2020-11-12 16:41:30 +01:00
test add directory test playbook 2020-05-14 20:19:22 +02:00
action.yml action: add post 2020-05-07 11:42:11 +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 main: save directory to state 2020-05-14 20:13:55 +02:00
package-lock.json build(deps): bump @actions/core from 1.2.5 to 1.2.6 2020-09-24 04:59:58 +00:00
package.json build(deps): bump @actions/core from 1.2.5 to 1.2.6 2020-09-24 04:59:58 +00:00
playbook.yml playbook: hosts=all 2020-03-22 12:47:43 +01: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