generated from CC/VMServiceTemplate
ci/cd ansible rsync
All checks were successful
Deploy VM and App / terraform-ansible-deploy (push) Successful in 1m20s
All checks were successful
Deploy VM and App / terraform-ansible-deploy (push) Successful in 1m20s
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y ansible
|
sudo apt-get install -y ansible rsync
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
@@ -59,15 +59,6 @@ jobs:
|
|||||||
UserKnownHostsFile=/dev/null
|
UserKnownHostsFile=/dev/null
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Ansible Inventory YML
|
|
||||||
run: |
|
|
||||||
ls
|
|
||||||
echo "ansible folder"
|
|
||||||
ls ansible
|
|
||||||
echo "inventory folder"
|
|
||||||
ls ansible/inventory
|
|
||||||
#cat ansible/inventory/inventory.yml
|
|
||||||
|
|
||||||
- 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/vlans_rsa
|
ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/vlans_rsa
|
||||||
|
|||||||
Reference in New Issue
Block a user