29 lines
978 B
YAML
29 lines
978 B
YAML
- 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"
|
|
- name: create subfolder home-assistant
|
|
ansible.builtin.file:
|
|
path: /home/{{ ansible_user }}/home-assistant-components/home-assistant
|
|
state: directory
|
|
owner: "{{ ansible_user }}"
|
|
group: "{{ ansible_user }}"
|
|
mode: "0755"
|
|
- name: create subfolder config
|
|
ansible.builtin.file:
|
|
path: /home/{{ ansible_user }}/home-assistant-components/home-assistant/config
|
|
state: directory
|
|
owner: "{{ ansible_user }}"
|
|
group: "{{ ansible_user }}"
|
|
mode: "0755"
|
|
- name: create subfolder media
|
|
ansible.builtin.file:
|
|
path: /home/{{ ansible_user }}/home-assistant-components/home-assistant/media
|
|
state: directory
|
|
owner: "{{ ansible_user }}"
|
|
group: "{{ ansible_user }}"
|
|
mode: "0755"
|