aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sshd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sshd/tasks')
-rw-r--r--roles/sshd/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml
index 6a622d2..05221fd 100644
--- a/roles/sshd/tasks/main.yml
+++ b/roles/sshd/tasks/main.yml
@@ -9,22 +9,22 @@
- name: generate sshd configuration
ansible.builtin.template:
src: sshd_config.j2
- dest: "{{ sshd_configuration_file }}"
+ dest: "{{ sshd__configuration_file }}"
owner: 0
group: 0
mode: "0644"
- register: sshd_result_generate_configuration
+ register: sshd__result_generate_configuration
- name: lint sshd configuration
- ansible.builtin.command: "sshd -tf {{ sshd_configuration_file }}"
- register: sshd_result_lint
+ ansible.builtin.command: "sshd -tf {{ sshd__configuration_file }}"
+ register: sshd__result_lint
changed_when: false
- name: restart sshd # noqa: no-handler
ansible.builtin.service:
name: sshd
state: restarted
- when: sshd_result_generate_configuration.changed
+ when: sshd__result_generate_configuration.changed
- name: enable sshd
ansible.builtin.service:
@@ -33,6 +33,6 @@
- name: check ssh connection
ansible.builtin.wait_for:
- port: "{{ sshd_listen_port }}"
+ port: "{{ sshd__listen_port }}"
delay: 1
state: started
remember that computers suck.