diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6b7c6d1..f46330b 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -72,3 +72,8 @@ jobs: - name: Lint Playbooks run: ansible-lint working-directory: ./playbooks + + - name: Run Playbook + if: ${{ github.ref == 'refs/heads/main' }} + run: ansible-playbook deployment.yml + working-directory: ./playbooks diff --git a/playbooks/deployment.yml b/playbooks/deployment.yml index f0e0c1b..bc0381d 100644 --- a/playbooks/deployment.yml +++ b/playbooks/deployment.yml @@ -1,7 +1,7 @@ - name: Deploy artifact to instance. hosts: localhost vars_files: - - ../config/proxy.json + - ../config/ansible.secret.json - ../secrets/infrastructure.secret.json vars: ansible_connection: aws_ssm