parent
ace33da164
commit
a2238d59fb
59
.github/workflows/deploy.yml
vendored
59
.github/workflows/deploy.yml
vendored
@ -14,33 +14,32 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# repository: cuqmbr/homelab
|
# repository: cuqmbr/homelab
|
||||||
- name: Clone homelab git repository
|
- name: Clone homelab git repository
|
||||||
run: git clone https://git.cuqmbr.xyz/cuqmbr/homelab.git --depth 1 --sparse --branch main --single-branch
|
run: git clone https://git.cuqmbr.xyz/cuqmbr/homelab.git --depth 1 --branch main --single-branch
|
||||||
- run: ls -lR
|
- name: Change directory into ansible
|
||||||
# - name: Change directory into ansible
|
run: cd ./homelab/ansible
|
||||||
# run: cd ./homelab/ansible
|
- name: Run playbook
|
||||||
# - name: Run playbook
|
uses: dawidd6/action-ansible-playbook@v4
|
||||||
# uses: dawidd6/action-ansible-playbook@v4
|
with:
|
||||||
# with:
|
playbook: 20_main_page.yml
|
||||||
# playbook: 20_main_page.yml
|
directory: ./ansible
|
||||||
# directory: ./ansible
|
# configuration: |
|
||||||
# # configuration: |
|
# [defaults]
|
||||||
# # [defaults]
|
# callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
# # callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
# stdout_callback = yaml
|
||||||
# # stdout_callback = yaml
|
# nocows = false
|
||||||
# # nocows = false
|
key: ${{secrets.ANSIBLE_SSH_KEY}}
|
||||||
# key: ${{secrets.ANSIBLE_SSH_KEY}}
|
# inventory: |
|
||||||
# # inventory: |
|
# [all]
|
||||||
# # [all]
|
# example.com
|
||||||
# # example.com
|
#
|
||||||
# #
|
# [group1]
|
||||||
# # [group1]
|
# example.com
|
||||||
# # example.com
|
# known_hosts: |
|
||||||
# # known_hosts: |
|
# example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
||||||
# # example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
# vault_password: ${{secrets.VAULT_PASSWORD}}
|
||||||
# # vault_password: ${{secrets.VAULT_PASSWORD}}
|
# requirements: galaxy-requirements.yml
|
||||||
# # requirements: galaxy-requirements.yml
|
options: |
|
||||||
# options: |
|
-u gitea-actions
|
||||||
# -u gitea-actions
|
--ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ${user}@bastion.cuqmbr.home'"
|
||||||
# --ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ${user}@bastion.cuqmbr.home'"
|
-b --become-method doas
|
||||||
# -b --become-method doas
|
-i inventories/dev/hosts.yml
|
||||||
# -i inventories/dev/hosts.yml
|
|
||||||
|
Loading…
Reference in New Issue
Block a user