feat: ansible proxy jump

This commit is contained in:
2025-10-07 22:39:58 -04:00
parent 767fd3b503
commit 7f36507dce
7 changed files with 140 additions and 86 deletions

25
playbooks/runner.yml Normal file
View File

@@ -0,0 +1,25 @@
- name: Set up for fresh host.
gather_facts: false
hosts: localhost
vars_files:
- ../vault.yml
- ../dist/terraform_outputs.yml
tasks:
- name: Add remote host.
ansible.builtin.add_host:
name: server
ansible_ssh_host: repository_runner
ansible_ssh_extra_args: -J repository_gitea
- name: Deploy runner.
hosts: server
gather_facts: false
tasks:
- name: Test
ansible.builtin.raw: hostname
register: test
changed_when: false
- name: Debug
ansible.builtin.debug:
var: test