From a95f4dd0cddbe15af3ea9af74541b429717b0160 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Thu, 15 Apr 2021 16:35:16 +0200 Subject: [PATCH] fix dependenciees --- books/base.yml | 3 ++- books/users.yml | 1 + roles/ssh_totp/meta/main.yml | 2 ++ roles/ssh_totp/tasks/main.yml | 3 --- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 roles/ssh_totp/meta/main.yml diff --git a/books/base.yml b/books/base.yml index 1ca70f5..6cbcf63 100644 --- a/books/base.yml +++ b/books/base.yml @@ -1,6 +1,7 @@ #!/usr/bin/env ansible-playbook --- -- hosts: all, !tests +- hosts: all, tests roles: - base_config - create_users + - ssh_totp diff --git a/books/users.yml b/books/users.yml index b7e3239..38b7f62 100644 --- a/books/users.yml +++ b/books/users.yml @@ -4,3 +4,4 @@ - hosts: all, !tests roles: - create_users + - base_totp diff --git a/roles/ssh_totp/meta/main.yml b/roles/ssh_totp/meta/main.yml new file mode 100644 index 0000000..608d56d --- /dev/null +++ b/roles/ssh_totp/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: base_totp diff --git a/roles/ssh_totp/tasks/main.yml b/roles/ssh_totp/tasks/main.yml index e96b7ee..ae8e980 100644 --- a/roles/ssh_totp/tasks/main.yml +++ b/roles/ssh_totp/tasks/main.yml @@ -1,7 +1,4 @@ --- -dependencies: - - role: base-totp - - name: Eddit pam config for ssh lineinfile: path: /etc/pam.d/sshd