generated from CC/VMServiceTemplate
ci/cd vlans_rsa ansible
Some checks failed
Deploy VM and App / terraform-ansible-deploy (push) Failing after 1m31s
Some checks failed
Deploy VM and App / terraform-ansible-deploy (push) Failing after 1m31s
This commit is contained in:
@@ -51,8 +51,8 @@ jobs:
|
|||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
printf '%s\n' "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/vlans_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/vlans_rsa
|
||||||
cat > ~/.ssh/config <<'EOF'
|
cat > ~/.ssh/config <<'EOF'
|
||||||
Host *
|
Host *
|
||||||
StrictHostKeyChecking no
|
StrictHostKeyChecking no
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/id_rsa
|
ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/vlans_rsa
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user