Files
Ansible-Minecraft-Server/roles/05-update/tasks/01-check-ssh-keys.yml
hcornet 8f0877cd53
Some checks failed
Ansible Minecraft CI/CD / Ansible Lint (push) Successful in 8s
Ansible Minecraft CI/CD / Syntax Check (push) Failing after 7s
Ansible Minecraft CI/CD / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD / Deploy to Production (push) Has been skipped
new version
2025-08-27 15:11:08 +02:00

9 lines
296 B
YAML

---
- name: Vérification des nouvelles clés SSH
ansible.posix.authorized_key:
user: "{{ item.user }}"
state: present
key: "{{ item.key }}"
comment: "{{ item.comment | default('Admin key') }}"
with_items: "{{ admin_ssh_keys | default([]) }}"
when: admin_ssh_keys is defined