diff --git a/roles/init/tasks/ssh-keygen.yml b/roles/init/tasks/ssh-keygen.yml index 280b1fa..b0e21fb 100644 --- a/roles/init/tasks/ssh-keygen.yml +++ b/roles/init/tasks/ssh-keygen.yml @@ -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 diff --git a/roles/setup/tasks/clearos_pkgs.yml b/roles/setup/tasks/clearos_pkgs.yml index 1a7d8b9..2d7151d 100644 --- a/roles/setup/tasks/clearos_pkgs.yml +++ b/roles/setup/tasks/clearos_pkgs.yml @@ -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