Add default SSH port variable
This commit is contained in:
parent
af346c5220
commit
b0a6f1cd28
@ -9,7 +9,4 @@
|
||||
# appropriate entries to /etc/hosts.
|
||||
|
||||
[server]
|
||||
loki
|
||||
|
||||
[vm]
|
||||
mimir
|
||||
loki
|
@ -9,7 +9,7 @@
|
||||
pre_tasks:
|
||||
- name: Use default SSH port
|
||||
set_fact:
|
||||
ansible_port: 22
|
||||
ansible_port: "{{ default_ssh_port }}"
|
||||
|
||||
tasks:
|
||||
- name: Install python2
|
||||
|
@ -13,6 +13,10 @@ ansible_become_pass:
|
||||
# temporarily reset to the default SSH port.
|
||||
ssh_port:
|
||||
|
||||
# The default SSH port. Usually 22, but can be different if you're using port
|
||||
# forwarding.
|
||||
default_ssh_port:
|
||||
|
||||
# GitLab
|
||||
gitlab_ssh_port:
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
pre_tasks:
|
||||
- name: Use default SSH port
|
||||
set_fact:
|
||||
ansible_port: 22
|
||||
ansible_port: "{{ default_ssh_port }}"
|
||||
|
||||
tasks:
|
||||
- name: Copy sshd config
|
||||
|
Reference in New Issue
Block a user