finalize nextcloud roles

This commit is contained in:
vincent 2020-02-16 16:22:01 +01:00
parent 5b2447b867
commit a330f2cedf
2 changed files with 5 additions and 3 deletions

View File

@ -9,4 +9,4 @@ hass_SQl_target_file: /
hass_db_password: toto
hass_repo: git
hass_repo_branch: master
hass_user: []
hass_user: []

View File

@ -35,9 +35,10 @@
become: yes
- name: add {{user.name}} to hass group
become: true
user:
name: "{{ item }}"
groups: docker
groups: hass
append: true
with_items: "{{ hass_user }}"
@ -65,10 +66,11 @@
- name: install conf file
git:
dest: "{{hass_conf_folder}}" # required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).
repo: "{{hass_repo}}" # required. git, SSH, or HTTP(S) protocol address of the git repository.
repo: "{{hass_repo}}" # required. git, SSH, or HTTP(S) protocol address of the git repository.
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
version: "{{hass_repo_branch}}"
notify: restart hass
become: true
when: hass_repo_exist.stat.exists == false
- name: change owner