Browse Source

Mise au propre du role

master
Pierre Coimbra 1 year ago
parent
commit
e733bddf69
Signed by: pcoimbra GPG Key ID: F9C449C78F6FAEE6
3 changed files with 15 additions and 11 deletions
  1. +9
    -4
      README.md
  2. +1
    -2
      tasks/main.yml
  3. +5
    -5
      tasks/ssh_keys.yml

+ 9
- 4
README.md View File

@ -1,9 +1,10 @@
# Ansible role - SSH Keys
# Ansible Role - SSH Keys
Clé privée temporaire encryptée dans ssh/id_ed25519
Clé privée temporaire encryptée dans `ssh/id_ed25519`
Liste des clés publique dans group_vars/lxc.yml
Liste des clés publique
### group_vars/lxc.yml
```
keystodeploy:
- name: Pierre C
@ -12,6 +13,10 @@ keystodeploy:
sshkey: ssh-rsa AAAAB3Nz...
```
### License
GPLv3 - Elukerio
### Author Information
Pierre Coimbra

+ 1
- 2
tasks/main.yml View File

@ -1,3 +1,2 @@
---
- name: Install ssh keys
import_tasks: ssh_keys.yml
- import_tasks: ssh_keys.yml

+ 5
- 5
tasks/ssh_keys.yml View File

@ -1,6 +1,6 @@
---
- name: Deploy SSH-Keys to remote host
authorized_key:
user: root
key: "{{ keystodeploy|map(attribute='sshkey')|join('\n') }}"
exclusive: true
- name: ssh keys | deploy SSH-Keys to remote host
authorized_key:
user: root
key: "{{ keystodeploy|map(attribute='sshkey')|join('\n') }}"
exclusive: true

Loading…
Cancel
Save