Corretta creazione ssh-key. Rivista lista dei pacchetti disponibili per ClearOS.

This commit is contained in:
Emiliano Vavassori 2015-04-16 14:24:15 +02:00
parent fea492fb7d
commit 25e3afff28
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,14 @@
---
- name: Verifica presenza directory .ssh
shell: test -d /root/.ssh
register: check_sshdir
ignore_errors: true
- name: Creazione directory .ssh
shell: mkdir -p /root/.ssh
when: check_sshdir|failed
- name: Verifica chiave ssh
shell: test -f /root/.ssh/id_rsa
changed_when: false
@ -7,7 +16,7 @@
register: check_key
- name: Gestione creazione chiave ssh
shell: ssh-keygen -t rsa -b 1024 -f id_rsa -N ''
shell: ssh-keygen -t rsa -b 1024 -f /root/.ssh/id_rsa -N ''
sudo: yes
sudo_user: root
when: check_key|failed

View File

@ -10,7 +10,6 @@
- app-openldap-directory
- app-ntp
- app-configuration-backup
- app-backuppc
- app-firewall
- app-network
- app-users
@ -29,7 +28,6 @@
- app-log-viewer
- app-print-server
- app-samba
- app-samba-core
- app-user-profile
- app-date
- app-marketplace