feat: ansible proxy jump
This commit is contained in:
25
playbooks/runner.yml
Normal file
25
playbooks/runner.yml
Normal 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
|
||||
Reference in New Issue
Block a user