Skip to content

Commit

Permalink
Update CICD add playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
vectornguyen76 committed Dec 22, 2023
1 parent 6316f39 commit 76f1bf8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/development_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,16 @@ jobs:
options: |
--inventory ./.github/workflows/ansible/inventory.txt
- name: Setting up SSH key
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key.pem
chmod 600 private_key.pem
- name: Run Ansible Playbook
run: |
sudo apt update
sudo apt install -y ansible
cd ./.github/workflows/ansible
ansible-playbook -i inventory.txt deploy_applications.yml --private-key=private_key.pem
# - name: Setting up SSH key
# run: |
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key.pem
# chmod 600 private_key.pem
# - name: Run Ansible Playbook
# run: |
# sudo apt update
# sudo apt install -y ansible
# cd ./.github/workflows/ansible
# ansible-playbook -i inventory.txt deploy_applications.yml --private-key=private_key.pem

- name: Setup SSH
shell: bash
Expand All @@ -294,6 +294,8 @@ jobs:
- name: Run ansible script
shell: bash
run: |
sudo apt update
sudo apt install -y ansible
service ssh status
cd ./.github/workflows/ansible
inventory.txt
Expand Down

0 comments on commit 76f1bf8

Please sign in to comment.