This GitHub action allows you to run Ansible Playbook.
To use the action simply create an action-name.yml
in the your project .github/workflows/
directory.
on: push
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Perform ansible playbook to deploy
uses: actions-ansible@v2
with:
playbook: ./path-to-directory/playbook.yml
inventory: ./path-to-directory/production.yml
The associated scripts and documentation in this project are released under the MIT.