diff --git a/ansible/hosts b/ansible/hosts index 2c868e7..5e6342c 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -9,7 +9,4 @@ # appropriate entries to /etc/hosts. [server] -loki - -[vm] -mimir +loki \ No newline at end of file diff --git a/ansible/python.yml b/ansible/python.yml index 14b029c..26a9a77 100644 --- a/ansible/python.yml +++ b/ansible/python.yml @@ -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 diff --git a/ansible/secrets.def.yml b/ansible/secrets.def.yml index 6d04314..490cd1c 100644 --- a/ansible/secrets.def.yml +++ b/ansible/secrets.def.yml @@ -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: diff --git a/ansible/ssh.yml b/ansible/ssh.yml index 6166298..5ccc79b 100644 --- a/ansible/ssh.yml +++ b/ansible/ssh.yml @@ -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