fix permissions

This commit is contained in:
Robert Kaussow 2018-07-08 22:36:54 +02:00
parent d22caa7292
commit f9815eeaee

View File

@ -25,11 +25,13 @@
state: directory
owner: "{{ unifi_user }}"
group: "{{ unifi_group }}"
recurse: True
with_items:
- "{{ unifi_base_dir }}"
- "{{ unifi_base_dir }}/{{ unifi_version }}"
become: True
- block:
- name: Setup unifi version '{{ unifi_version }}'
unarchive:
src: "https://dl.ubnt.com/unifi/{{ unifi_version }}/UniFi.unix.zip"
@ -41,3 +43,5 @@
src: "{{ unifi_base_dir }}/{{ unifi_version }}"
dest: "{{ unifi_base_dir }}/latest"
state: link
become: True
become_user: "{{ unifi_user }}"