git workflow ansible inventory file
All checks were successful
deploy host / Deploy (push) Successful in 11s
All checks were successful
deploy host / Deploy (push) Successful in 11s
This commit is contained in:
@@ -15,6 +15,19 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.HOST_ANSIBLE_PRIVATE_KEY }}" > ${GITHUB_WORKSPACE}/ssh-key &&
|
||||
chmod 600 ${GITHUB_WORKSPACE}/ssh-key
|
||||
|
||||
|
||||
- name: setup Ansible Inventory file
|
||||
run: |
|
||||
cat >> ansible/inventory.yml << 'END'
|
||||
all:
|
||||
hosts:
|
||||
homesrv01:
|
||||
ansible_host: ${{secrets.HOST_ANSIBLE_HOST}}
|
||||
ansible_user: ${{secrets.HOST_ANSIBLE_REMOTE_USER }}
|
||||
ansible_become_pass: "${{secrets.HOST_ANSIBLE_BECOME_PASS}}"
|
||||
END
|
||||
|
||||
|
||||
- name: Run Ansible Playbook
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user