refactor: перейти на ansible.posix.authorized_key, очищать ключ раннера и поддержать внешние секреты

This commit is contained in:
karpenok committed 2026-11-08 12:38:02 +07:00
1 parent 7ff2b00d27
commit 69e098415b
4 files changed
+12 -11

No files matched your search

+3 -7
View File
@@ -15,14 +15,10 @@
mode: "0700"
- name: Добавить авторизованные SSH-ключи
ansible.builtin.lineinfile:
path: /root/.ssh/authorized_keys
line: "{{ item }}"
ansible.posix.authorized_key:
user: root
key: "{{ item }}"
state: present
create: true
owner: root
group: root
mode: "0600"
loop: "{{ host_authorized_keys }}"
- name: Удалить cloud-init настройки пароля SSH