fix permissions
This commit is contained in:
parent
d22caa7292
commit
f9815eeaee
@ -25,19 +25,23 @@
|
|||||||
state: directory
|
state: directory
|
||||||
owner: "{{ unifi_user }}"
|
owner: "{{ unifi_user }}"
|
||||||
group: "{{ unifi_group }}"
|
group: "{{ unifi_group }}"
|
||||||
|
recurse: True
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ unifi_base_dir }}"
|
- "{{ unifi_base_dir }}"
|
||||||
- "{{ unifi_base_dir }}/{{ unifi_version }}"
|
- "{{ unifi_base_dir }}/{{ unifi_version }}"
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
- name: Setup unifi version '{{ unifi_version }}'
|
- block:
|
||||||
|
- name: Setup unifi version '{{ unifi_version }}'
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "https://dl.ubnt.com/unifi/{{ unifi_version }}/UniFi.unix.zip"
|
src: "https://dl.ubnt.com/unifi/{{ unifi_version }}/UniFi.unix.zip"
|
||||||
dest: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
dest: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
- name: Create symlink for latest version
|
- name: Create symlink for latest version
|
||||||
file:
|
file:
|
||||||
src: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
src: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
||||||
dest: "{{ unifi_base_dir }}/latest"
|
dest: "{{ unifi_base_dir }}/latest"
|
||||||
state: link
|
state: link
|
||||||
|
become: True
|
||||||
|
become_user: "{{ unifi_user }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user