summaryrefslogtreecommitdiff
path: root/roles/sshd/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-12-26 21:50:16 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-12-26 21:50:16 +0100
commitc7006b00fb5664423daeee3b83aa347cf959701b (patch)
tree1da323d2777246ff0e01370641f2b2f48dca914e /roles/sshd/tasks
parentmake vm install work for both debian/ubuntu and openbsd (diff)
zsh and sshd role support debian and openbsd now
Diffstat (limited to 'roles/sshd/tasks')
-rw-r--r--roles/sshd/tasks/main.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml
index f98ea536..d73d778b 100644
--- a/roles/sshd/tasks/main.yml
+++ b/roles/sshd/tasks/main.yml
@@ -1,4 +1,12 @@
---
+- name: load os/distrubtion/version specific variables
+ include_vars: "{{ item }}"
+ with_first_found:
+ - files:
+ - "{{ ansible_distribution_release }}.yml"
+ - "{{ ansible_distribution }}.yml"
+ - "{{ ansible_os_family }}.yml"
+
- name: hardening ssh-server config
vars:
sshd_options:
@@ -32,6 +40,7 @@
exclusive: yes
- name: delete root password
+ when: sshd_disabled_password is defined
user:
name: root
- password: "!"
+ password: "{{ sshd_disabled_password }}"