Skip to content

Commit 2995e0e

Browse files
committed
Split up CD steps
1 parent 028d93e commit 2995e0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cd.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Ansible
2626
run: pip install ansible-core
2727

28-
- name: Deploy with Ansible
28+
- name: Configure SSH
2929
run: |
3030
# Save the private SSH key
3131
mkdir -p ~/.ssh
@@ -36,6 +36,8 @@ jobs:
3636
ssh-keyscan -H ${{ vars.SERVER_NAME }} > ~/.ssh/known_hosts
3737
chmod 600 ~/.ssh/known_hosts
3838
39+
- name: Deploy with Ansible
40+
run: |
3941
# Construct ansible-playbook command
4042
command="ansible-playbook playbook.yml -u root -i ${{ vars.SERVER_NAME }}, \
4143
-e \"ServerName=${{ vars.SERVER_NAME }} ServerAdmin=${{ secrets.SERVER_ADMIN }} AdminPassword=${{ secrets.ADMIN_PASSWORD }} \

0 commit comments

Comments
 (0)