parent
eedad0cbb8
commit
7b3e413dc8
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@ -13,14 +13,14 @@ jobs:
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# repository: cuqmbr/homelab
|
||||
- name: Clone homelab git repository
|
||||
- name: Checkout cuqmbr/homelab repository
|
||||
run: git clone https://git.cuqmbr.xyz/cuqmbr/homelab.git --depth 1 --branch main --single-branch
|
||||
- name: Install ansible
|
||||
- name: Setup ansible
|
||||
run: apt-get update && apt-get install ansible-core -y
|
||||
- name: Create ssh key file
|
||||
run: echo -n "${{secrets.ANSIBLE_SSH_KEY}}" > key
|
||||
- name: Run ansible playbook
|
||||
run: export user="gitea-actions"; ansible-playbook -vvv -u "${user}" --ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ${user}@bastion.cuqmbr.home'" --private-key key -b --become-method doas -i ./homelab/ansible/inventories/dev/hosts.yml ./homelab/ansible/20_main_page.yml
|
||||
run: cd ./homelab/ansible; export user="gitea-actions"; ansible-playbook -vvv -u "${user}" --ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ${user}@bastion.cuqmbr.home'" --private-key key -b --become-method doas -i ./inventories/dev/hosts.yml ./20_main_page.yml
|
||||
# - name: Run ansible playbook
|
||||
# uses: dawidd6/action-ansible-playbook@v4
|
||||
# with:
|
||||
|
Loading…
Reference in New Issue
Block a user