diff --git a/tasks/main.yml b/tasks/main.yml index 196c0d9..84b9d6f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -111,6 +111,26 @@ mode: 0770 recurse: yes +- name: create .ssh folder + file: + state: directory + dest: "{{hass_conf_folder}}/.ssh/" + owner: hass + group: hass + mode: 0700 + recurse: yes + become: yes + +- name: create ssh key pair + openssh_keypair: + path: "{{hass_conf_folder}}/.ssh/id_rsa" + owner: "{{hass_username}}" + become: yes + register: hass_SSH_creation + +- name: print ssh public key + debug: + msg: "{{ hass_SSH_creation }}" - name: copy failtoban config template: