fix(connection): set ansible_port explicitly at every connection transition
This commit is contained in:
1 parent
4e381435d1
commit
9e6d7b75be
3 files changed
+7
-1
No files matched your search
@@ -87,9 +87,10 @@
|
||||
- name: Switch to SSH connection
|
||||
ansible.builtin.set_fact:
|
||||
ansible_connection: ssh
|
||||
ansible_host: "{{ system_cfg.network.ip }}"
|
||||
ansible_port: 22
|
||||
ansible_user: root
|
||||
ansible_password: ""
|
||||
ansible_host: "{{ system_cfg.network.ip }}"
|
||||
ansible_ssh_extra_args: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||
|
||||
- name: Reset connection for SSH switchover
|
||||
|
||||
Reference in new issue
Block a user