feat: ansible proxy jump
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user