diff --git a/tasks/main.yml b/tasks/main.yml index cb919c7..3477254 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -12,7 +12,7 @@ - name: "Set «PermitRootLogin» to «without-password»" lineinfile: - dest: /etc/ssh/sshd_config + dest: '{{ sshd_config_path | default("/etc/ssh/sshd_config") }}' regexp: '^#? *PermitRootLogin' line: "PermitRootLogin without-password" backup: yes diff --git a/vars/alpine.yml b/vars/alpine.yml deleted file mode 120000 index ba2f905..0000000 --- a/vars/alpine.yml +++ /dev/null @@ -1 +0,0 @@ -redhat.yml \ No newline at end of file diff --git a/vars/redhat.yml b/vars/default.yml similarity index 100% rename from vars/redhat.yml rename to vars/default.yml diff --git a/vars/suse.yml b/vars/suse.yml deleted file mode 100644 index 6f6d9cf..0000000 --- a/vars/suse.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -ssh_service_name: sshd - diff --git a/vars/void.yml b/vars/void.yml deleted file mode 120000 index ba2f905..0000000 --- a/vars/void.yml +++ /dev/null @@ -1 +0,0 @@ -redhat.yml \ No newline at end of file