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:
2
.actrc
2
.actrc
@@ -1,2 +1,2 @@
|
||||
-P vlan-casa_continous-deploy=git.limbosolutions.com/kb/gitea/act-runner_ansible:0.2.11-dev
|
||||
-P vlan-casa_continous-deploy=git.limbosolutions.com/kb/gitea/act-runner_ansible:0.2.11
|
||||
-W .gitea
|
||||
@@ -16,6 +16,19 @@ jobs:
|
||||
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: |
|
||||
cd ${GITHUB_WORKSPACE}
|
||||
|
||||
Reference in New Issue
Block a user