diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-07-07 10:31:16 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-07-07 13:11:37 +0000 |
commit | 2720dc186a1e488833533bfa8e14bfaa578aabca (patch) | |
tree | 18f2f75ab8409c20ac500c657fad64168cff5914 /fdio.infra.ansible/roles/user_add | |
parent | 9f603617b10a447c59cd17110a89f67a1bf42d6e (diff) |
feat(ansible): Migrate Ubuntu Jammy II
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I43c86ab3232a382e7cc9010fb04a0ca269b24e77
Diffstat (limited to 'fdio.infra.ansible/roles/user_add')
-rw-r--r-- | fdio.infra.ansible/roles/user_add/handlers/main.yaml | 2 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/user_add/tasks/main.yaml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fdio.infra.ansible/roles/user_add/handlers/main.yaml b/fdio.infra.ansible/roles/user_add/handlers/main.yaml index 960f573b48..5f1f71a332 100644 --- a/fdio.infra.ansible/roles/user_add/handlers/main.yaml +++ b/fdio.infra.ansible/roles/user_add/handlers/main.yaml @@ -2,6 +2,6 @@ # file: roles/user_add/handlers/main.yaml - name: Restart SSHd - service: + ansible.builtin.service: name: sshd state: restarted diff --git a/fdio.infra.ansible/roles/user_add/tasks/main.yaml b/fdio.infra.ansible/roles/user_add/tasks/main.yaml index 24be30dc6e..329c6abd07 100644 --- a/fdio.infra.ansible/roles/user_add/tasks/main.yaml +++ b/fdio.infra.ansible/roles/user_add/tasks/main.yaml @@ -2,7 +2,7 @@ # file: roles/user_add/tasks/main.yaml - name: Conf - Add User - user: + ansible.builtin.user: append: "{{ item.append | default(omit) }}" createhome: "{{ 'yes' if users_create_homedirs else 'no' }}" generate_ssh_key: "{{ item.generate_ssh_key | default(omit) }}" @@ -16,7 +16,7 @@ - user-add-conf - name: Conf - SSH keys - authorized_key: + ansible.builtin.authorized_key: user: "{{ item.0.username }}" key: "{{ item.1 }}" with_subelements: @@ -27,7 +27,7 @@ - user-add-conf - name: Conf - Disable Password Login - lineinfile: + ansible.builtin.lineinfile: dest: "/etc/ssh/sshd_config" regexp: "^PasswordAuthentication yes" line: "PasswordAuthentication no" |