2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
- name: template ssh public key
|
|
|
|
become: true
|
|
|
|
ansible.posix.authorized_key:
|
|
|
|
user: "{{ sanoid_user }}"
|
2024-10-29 14:44:01 +01:00
|
|
|
#key: "{{ sanoid_syncoid_ssh_pubkey }}"
|
2024-10-29 14:37:47 +01:00
|
|
|
state: absent
|
2023-10-25 22:26:17 +02:00
|
|
|
when:
|
|
|
|
- sanoid_syncoid_source_host
|
|
|
|
|
2024-10-23 20:16:30 +02:00
|
|
|
- name: Ensure user is added to sudoers
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
2024-10-23 20:16:30 +02:00
|
|
|
community.general.sudoers:
|
|
|
|
name: "users-sudo-{{ sanoid_user }}"
|
2024-10-29 14:37:47 +01:00
|
|
|
state: absent
|
2024-10-23 20:16:30 +02:00
|
|
|
user: "{{ sanoid_user }}"
|
|
|
|
commands: ALL
|
|
|
|
nopassword: true
|
2023-10-25 22:26:17 +02:00
|
|
|
when:
|
|
|
|
- sanoid_syncoid_source_host
|