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

View File

@@ -11,7 +11,7 @@
ansible_ssh_host: "{{ server_ip.value }}"
ansible_user: root
ansible_port: 22
ansible_private_key_file: "{{ secret.private_ssh_key_path }}"
ansible_private_key_file: "{{ secret.private_gitea_ssh_key_path }}"
- name: Switch port to 2222.
hosts: server_fresh
@@ -41,10 +41,7 @@
- name: Add remote host.
ansible.builtin.add_host:
name: server
ansible_ssh_host: "{{ server_ip.value }}"
ansible_user: root
ansible_port: 2222
ansible_private_key_file: "{{ secret.private_ssh_key_path }}"
ansible_ssh_host: repository_gitea
- name: Install Docker.
gather_facts: true
@@ -55,7 +52,6 @@
tasks:
- name: Install PIP.
ansible.builtin.apt:
update_cache: true
name:
- python3-pip
state: present