diff --git a/.github/workflows/test.playbook.yml b/.github/workflows/test.playbook.yml new file mode 100644 index 0000000..896f2b1 --- /dev/null +++ b/.github/workflows/test.playbook.yml @@ -0,0 +1,28 @@ +name: Deploy with Self-Signed SSL Certificate + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install Ansible + run: | + python -m pip install --upgrade pip + pip install ansible + + - name: Run Ansible Playbook + run: | + ansible-playbook test.ansible.yml --extra-vars "domain=localhost"