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