added roles folder
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#- name: create file structure for postgres docker installation
|
||||
|
||||
- name: check if directory exists
|
||||
ansible.builtin.stat:
|
||||
path: /home/"{{ ansible_user }}"/home-assistant-components
|
||||
register: ha_comp_folder
|
||||
|
||||
- name: create file structure for home-assistant docker installation
|
||||
ansible.builtin.file:
|
||||
path: /home/"{{ ansible_user }}"/home-assistant-components
|
||||
state: directory
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: "0755"
|
||||
when: not ha_comp_folder.stat.exists
|
||||
|
||||
- name: create subfolder home-assistant
|
||||
ansible.builtin.file:
|
||||
path: /home/"{{ ansible_user }}"/home-assistant-components/postgres
|
||||
state: directory
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: "0755"
|
||||
Reference in New Issue
Block a user