feat: run playbook action
This commit is contained in:
5
.github/workflows/deployment.yml
vendored
5
.github/workflows/deployment.yml
vendored
@@ -72,3 +72,8 @@ jobs:
|
|||||||
- name: Lint Playbooks
|
- name: Lint Playbooks
|
||||||
run: ansible-lint
|
run: ansible-lint
|
||||||
working-directory: ./playbooks
|
working-directory: ./playbooks
|
||||||
|
|
||||||
|
- name: Run Playbook
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
run: ansible-playbook deployment.yml
|
||||||
|
working-directory: ./playbooks
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- name: Deploy artifact to instance.
|
- name: Deploy artifact to instance.
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
vars_files:
|
vars_files:
|
||||||
- ../config/proxy.json
|
- ../config/ansible.secret.json
|
||||||
- ../secrets/infrastructure.secret.json
|
- ../secrets/infrastructure.secret.json
|
||||||
vars:
|
vars:
|
||||||
ansible_connection: aws_ssm
|
ansible_connection: aws_ssm
|
||||||
|
|||||||
Reference in New Issue
Block a user