parent
f2e604729d
commit
abc149be35
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -15,5 +15,7 @@ jobs:
|
||||
run: apt-get update && apt-get install ansible-core -y
|
||||
- name: Create ssh key file
|
||||
run: echo -n "${{secrets.ANSIBLE_SSH_KEY}}" > key
|
||||
- name: Add key to ssh agent
|
||||
run: ssh-add key
|
||||
- name: Run ansible playbook
|
||||
run: cd ./homelab/ansible; ansible-playbook -u gitea-actions --ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ansible@bastion.cuqmbr.home'" --private-key ../../key -b --become-method doas --start-at-task 'Install hugo deb package from github.' -i inventories/dev/hosts.yml 20_main_page.yml
|
||||
run: cd ./homelab/ansible; ansible-playbook -u gitea-actions --ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q gitea-actions@bastion.cuqmbr.home'" -b --become-method doas --start-at-task 'Install hugo deb package from github.' -i inventories/dev/hosts.yml 20_main_page.yml
|
||||
|
Loading…
Reference in New Issue
Block a user