diff options
author | pmikus <peter.mikus@protonmail.ch> | 2024-07-22 13:51:10 +0200 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2024-07-26 07:21:19 +0000 |
commit | beacfb25fc1ef4a78415d93f97afeffb121a8ea2 (patch) | |
tree | 0f538d87b787ab5efe43f3e3950ca5553f58cd18 /fdio.infra.ansible/roles/user_add/tasks/main.yaml | |
parent | f97e5e9b91bc01c8fb5771b47107b0d8ef1aacab (diff) |
feat(infra): Ubuntu 24.04 LTSoper-240722
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: I81e48360fcc970a16f1203955003d59f476b3233
(cherry picked from commit 586b271c3f3401c8901ee26a27e804483d71d6c7)
Diffstat (limited to 'fdio.infra.ansible/roles/user_add/tasks/main.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/user_add/tasks/main.yaml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fdio.infra.ansible/roles/user_add/tasks/main.yaml b/fdio.infra.ansible/roles/user_add/tasks/main.yaml index 329c6abd07..c01a1497d8 100644 --- a/fdio.infra.ansible/roles/user_add/tasks/main.yaml +++ b/fdio.infra.ansible/roles/user_add/tasks/main.yaml @@ -1,7 +1,7 @@ --- -# file: roles/user_add/tasks/main.yaml +# file: tasks/main.yaml -- name: Conf - Add User +- name: Add User ansible.builtin.user: append: "{{ item.append | default(omit) }}" createhome: "{{ 'yes' if users_create_homedirs else 'no' }}" @@ -15,7 +15,7 @@ tags: - user-add-conf -- name: Conf - SSH keys +- name: SSH keys ansible.builtin.authorized_key: user: "{{ item.0.username }}" key: "{{ item.1 }}" @@ -26,13 +26,11 @@ tags: - user-add-conf -- name: Conf - Disable Password Login +- name: Disable Password Login ansible.builtin.lineinfile: dest: "/etc/ssh/sshd_config" regexp: "^PasswordAuthentication yes" line: "PasswordAuthentication no" - notify: - - "Restart SSHd" when: - sshd_disable_password_login tags: |