refactor: перейти на ansible.posix.authorized_key, очищать ключ раннера и поддержать внешние секреты
This commit is contained in:
1 parent
7ff2b00d27
commit
69e098415b
4 files changed
+12
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user