Nacharbeiten: ssh-key Wechsel (#321)

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>
This commit is contained in:
Michael Grote 2022-01-28 16:49:15 +01:00
parent 297505a397
commit d4873c27a8
3 changed files with 15 additions and 2 deletions

View File

@ -9,7 +9,7 @@
".git/**"
],
"username": "mg",
"keyfile": "C:\\Users\\mg\\Desktop\\NextCloud\\Rest\\ssh-keys\\ssh_key_heimserver_mg.ppk",
"keyfile": "C:\\Users\\mg\\Desktop\\NextCloud\\Rest\\ssh-keys\\ssh_key_heimserver_mg2.ppk",
"transport": "scp",
"watch": []
}
}

View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0NNNWRq4BnKgh17P6VSLRztuPzEMUB7X4g/ft75j/EvwIP6yuPvvvtgPlewxA8C8c2ztc0VpsyEFxXgDrKGD+VxeU41CjTNr8ccbZenyaePmJxZEsgzZ0ujaCE6hiFYJoMlHhkT3EhDhS1UMfWsEdhiDo8wwU3b6KnwRnqFq+Kc6iSceBn5tl7KxUlxqoM1pjBHTl27Vcq5z2Qw5cLQsQdGT+881gJHoc2U+DjPSuk8w2hKcOqagOwa9IBSuy8GF5u27LVwcwV31KHNSFHz/52pgfgyfpf/AucbVvYIB36paNbvrcnrod7tFJeN5GnNrqX8/wV1OodFsDoc8ZulXQnol/vvBW/p5C98POvjQqptGvo0HMvUjvMrB77phdk/r8cQ30Ry2IcttiTGpM2tKbv5HBNoFntWSX1Tv1J3tovI7qDtipSiCvpc4M9jkj5KB61FRUy7V3S3l9hdjLooL4793EwUsm2Zijgq629f4EkCLCSAepJziF02N+WCzbftMEN5wybZKWUhJjjFV7or0irjEbxImw8NkTZiM485MD1OSzug4DGvFbQGm4fQx531YpbmLyf4og+mC3n79E4IizHP1bkPbpb1EHRG7fsUkt/KtW/bg4OUhphPc1PTNexQFr5Kmn2JuIEnRLtqeyPpe55KQHHoTJ/ZdvqvpKClNjCQ== mg@irantu

View File

@ -0,0 +1,12 @@
---
- 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