We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 028d93e commit 2995e0eCopy full SHA for 2995e0e
.github/workflows/cd.yaml
@@ -25,7 +25,7 @@ jobs:
25
- name: Install Ansible
26
run: pip install ansible-core
27
28
- - name: Deploy with Ansible
+ - name: Configure SSH
29
run: |
30
# Save the private SSH key
31
mkdir -p ~/.ssh
@@ -36,6 +36,8 @@ jobs:
36
ssh-keyscan -H ${{ vars.SERVER_NAME }} > ~/.ssh/known_hosts
37
chmod 600 ~/.ssh/known_hosts
38
39
+ - name: Deploy with Ansible
40
+ run: |
41
# Construct ansible-playbook command
42
command="ansible-playbook playbook.yml -u root -i ${{ vars.SERVER_NAME }}, \
43
-e \"ServerName=${{ vars.SERVER_NAME }} ServerAdmin=${{ secrets.SERVER_ADMIN }} AdminPassword=${{ secrets.ADMIN_PASSWORD }} \
0 commit comments