git workflow ansible inventory file
All checks were successful
deploy host / Deploy (push) Successful in 11s

This commit is contained in:
2024-11-02 22:03:19 +00:00
parent 662da99ef0
commit 22da4bda9f
2 changed files with 14 additions and 1 deletions

2
.actrc
View File

@@ -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

View File

@@ -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}