From 4680babafca75f938307fd29969a1d62ce0f664e Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Wed, 15 May 2019 13:31:20 +0200 Subject: [PATCH] improve layout for galaxy --- meta/main.yml | 4 +--- tasks/main.yml | 8 +++++--- vars/Archlinux.yml | 2 -- vars/Fedora.yml | 2 -- vars/main.yml | 4 +--- 5 files changed, 7 insertions(+), 13 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 6b79513..659d41a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -20,10 +20,8 @@ galaxy_info: versions: - 28 - 29 - - 30 galaxy_tags: - ssh - sshd - - secure shell - - ssh config + - authorisation dependencies: [] diff --git a/tasks/main.yml b/tasks/main.yml index eeeaae7..87ea05a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -75,7 +75,8 @@ - restart ssh when: generate_ecdsa_too == false -- file: +- name: make sure the correct keys are available + file: path: '/etc/ssh/ssh_host_{{ item }}_key.pub' state: absent become: yes @@ -85,9 +86,10 @@ - dsa notify: - restart ssh - when: generate_ecdsa_too == false + when: not generate_ecdsa_too -- file: +- name: make sure the correct keys are available except ecdsa + file: path: '/etc/ssh/ssh_host_{{ item }}_key.pub' state: absent become: yes diff --git a/vars/Archlinux.yml b/vars/Archlinux.yml index b25deeb..164876b 100644 --- a/vars/Archlinux.yml +++ b/vars/Archlinux.yml @@ -1,4 +1,2 @@ --- - ssh_service: sshd - diff --git a/vars/Fedora.yml b/vars/Fedora.yml index b25deeb..164876b 100644 --- a/vars/Fedora.yml +++ b/vars/Fedora.yml @@ -1,4 +1,2 @@ --- - ssh_service: sshd - diff --git a/vars/main.yml b/vars/main.yml index afc02dc..c5ed838 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,5 +1,3 @@ --- -playbook_version_number: 100 +playbook_version_number: 101 playbook_version_path: '/etc/ansible-version/role-sshd_chaos-bodensee_github.com.version' - -