--- - name: on genere une cle privee pour s-backup openssh_keypair: path: /root/id_rsa_sbackup type: rsa state: present - name: copie cle publique dans gsbstore copy: src: /root/id_rsa_sbackup.pub dest: /var/www/html/gsbstore mode: 0644 remote_src: yes - name: copie cle privee dans gsbstore copy: src: /root/id_rsa_sbackup dest: /var/www/html/gsbstore mode: 0600 remote_src: yes