mg
d4873c27a8
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#321 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
12 lines
326 B
YAML
12 lines
326 B
YAML
---
|
|
- hosts: all
|
|
become: yes
|
|
|
|
tasks:
|
|
- name: Set authorized key taken from file
|
|
become: yes
|
|
ansible.posix.authorized_key:
|
|
user: mg
|
|
state: present
|
|
key: "{{ lookup('file', '/home/mg/ansible/playbooks/on-off/new_ssh_key') }}"
|
|
exclusive: true #entferne alle keys bis auf diesen
|