Aggiornamento per creazione chiave locale ssh.

This commit is contained in:
Emiliano Vavassori 2015-04-15 23:41:46 +02:00
parent ee97aa74d3
commit f64474fc0f
6 changed files with 14 additions and 3 deletions

View File

@ -7,3 +7,7 @@ Per configurarlo:
$ ansible-playbook firstsetup.yml -u root --ask-pass \
-e "admin_sshkey=/path/to/id_rsa.pub"
$ ansible-playbook server.yml
In alternativa:
$ bash init.sh

View File

@ -1,2 +1,3 @@
[defaults]
inventory=hosts
roles_path=roles

2
hosts
View File

@ -1,4 +1,2 @@
[server]
pdc ansible_ssh_host=10.0.0.1 ansible_ssh_user=amgmt
[clients]

View File

@ -5,8 +5,8 @@
sudo: yes
when: ansible_os_family == 'ClearOS'
with_items:
- git-svn
- vim-enhanced
- git
- screen
- sshpass
- ansible

View File

@ -1,3 +1,5 @@
---
- include: mgmtuser.yml
- include: ssh-keygen.yml

View File

@ -0,0 +1,6 @@
---
- name: Gestione creazione chiave ssh
shell: ssh-keygen -t rsa -b 1024 -f id_rsa -N ''
sudo: yes
sudo_user: root