homeserver/roles/mgrote_zfs_sanoid/tasks/source.yml
Michael Grote 5bfb4a021a
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 2s
ansible-lint / Ansible Lint (pull_request) Failing after 25s
dsfg
2024-10-29 14:37:47 +01:00

20 lines
469 B
YAML

---
- name: template ssh public key
become: true
ansible.posix.authorized_key:
user: "{{ sanoid_user }}"
key: "{{ sanoid_syncoid_ssh_pubkey }}"
state: absent
when:
- sanoid_syncoid_source_host
- name: Ensure user is added to sudoers
become: true
community.general.sudoers:
name: "users-sudo-{{ sanoid_user }}"
state: absent
user: "{{ sanoid_user }}"
commands: ALL
nopassword: true
when:
- sanoid_syncoid_source_host