parent
7b3e413dc8
commit
f2e604729d
32
.github/workflows/deploy.yml
vendored
32
.github/workflows/deploy.yml
vendored
@ -9,10 +9,6 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - name: Checkout repository
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# repository: cuqmbr/homelab
|
|
||||||
- name: Checkout cuqmbr/homelab repository
|
- name: Checkout cuqmbr/homelab repository
|
||||||
run: git clone https://git.cuqmbr.xyz/cuqmbr/homelab.git --depth 1 --branch main --single-branch
|
run: git clone https://git.cuqmbr.xyz/cuqmbr/homelab.git --depth 1 --branch main --single-branch
|
||||||
- name: Setup ansible
|
- name: Setup ansible
|
||||||
@ -20,30 +16,4 @@ jobs:
|
|||||||
- name: Create ssh key file
|
- name: Create ssh key file
|
||||||
run: echo -n "${{secrets.ANSIBLE_SSH_KEY}}" > key
|
run: echo -n "${{secrets.ANSIBLE_SSH_KEY}}" > key
|
||||||
- name: Run ansible playbook
|
- name: Run ansible playbook
|
||||||
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
|
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
|
||||||
# - name: Run ansible playbook
|
|
||||||
# uses: dawidd6/action-ansible-playbook@v4
|
|
||||||
# with:
|
|
||||||
# playbook: 20_main_page.yml
|
|
||||||
# directory: ./homelab/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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user