homeserver/roles/mgrote_zfs_sanoid/tasks/source.yml

21 lines
502 B
YAML
Raw Normal View History

---
2024-10-29 14:45:02 +01:00
#- name: template ssh public key
# become: true
# ansible.posix.authorized_key: # TODO händisch loschen
# user: "{{ sanoid_user }}"
2024-10-29 14:44:01 +01:00
#key: "{{ sanoid_syncoid_ssh_pubkey }}"
2024-10-29 14:45:02 +01:00
# state: absent
# when:
# - sanoid_syncoid_source_host
- name: Ensure user is added to sudoers
become: true
community.general.sudoers:
name: "users-sudo-{{ sanoid_user }}"
2024-10-29 14:37:47 +01:00
state: absent
user: "{{ sanoid_user }}"
commands: ALL
nopassword: true
when:
- sanoid_syncoid_source_host