diff options
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/common/tasks/main.yml | 9 | ||||
-rw-r--r-- | ansible/roles/users/vars/main.yml | 10 |
2 files changed, 11 insertions, 8 deletions
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index 3ffc105..b4d00bb 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -40,3 +40,12 @@ - strace - sudo state: present + +- name: "Passwordless sudo" + lineinfile: + path: /etc/sudoers + state: present + regexp: '^%sudo' + line: '%sudo ALL=(ALL) NOPASSWD: ALL' + validate: 'visudo -cf %s' + diff --git a/ansible/roles/users/vars/main.yml b/ansible/roles/users/vars/main.yml index fc0ef4a..e2734e3 100644 --- a/ansible/roles/users/vars/main.yml +++ b/ansible/roles/users/vars/main.yml @@ -11,13 +11,7 @@ active_users: ssh_keys: - 'alex-key1.pub' - - username: 'erwan' - ssh_keys: - - 'erwan-key1.pub' - - - username: 'valentin' - ssh_keys: - - 'valentin-key1.pub' - disabled_users: - 'john.doe' + - 'erwan' + - 'valentin' |