⚙️ A GitHub Action for running Ansible playbooks
Go to file
2020-04-07 00:14:34 +02:00
.github/workflows workflows: another test job 2020-04-07 00:03:41 +02:00
action.yml Merge pull request #1 from Roosterfish/feature/custom-inventory 2020-04-06 23:15:07 +02:00
Dockerfile Dockerfile: don't install bind-tools 2020-03-22 12:16:54 +01:00
Dockerfile.test Dockerfile.test: don't unlock root account 2020-03-23 23:15:41 +01:00
hosts add hosts inventory 2020-03-22 12:47:28 +01:00
LICENSE init 2020-03-21 17:06:40 +01:00
main.sh main: don't print inventory 2020-04-07 00:14:34 +02:00
playbook.yml playbook: hosts=all 2020-03-22 12:47:43 +01:00
README.md README: update 2020-04-07 00:07:48 +02:00
test.sh add testing Dockerfile and entrypoint script 2020-03-22 12:16:35 +01: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@v1
  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