1
0
cuqmbr.xyz/.github/workflows/deploy.yml
cuqmbr eb7b771da8
Some checks failed
/ deploy (push) Failing after 33s
update
2025-06-23 18:33:26 +03:00

44 lines
1.3 KiB
YAML

---
on:
push:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: cuqmbr/homelab
- name: Change directory into ansible
run: cd ./ansible
- name: Run playbook
uses: dawidd6/action-ansible-playbook@v4
with:
playbook: 20_main_page.yml
directory: ./ansible
# configuration: |
# [defaults]
# callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
# stdout_callback = yaml
# nocows = false
key: ${{secrets.ANSIBLE_SSH_KEY}}
# inventory: |
# [all]
# example.com
#
# [group1]
# example.com
# known_hosts: |
# example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
# vault_password: ${{secrets.VAULT_PASSWORD}}
# requirements: galaxy-requirements.yml
options: |
-u gitea-actions
--ssh-common-args "-o ProxyCommand='ssh -p 22 -W %h:%p -q ${user}@bastion.cuqmbr.home'"
-b --become-method doas
-i inventories/dev/hosts.yml