rework a bug with become_user and unarchive
This commit is contained in:
parent
f9815eeaee
commit
b5aa38be55
@ -32,9 +32,15 @@
|
|||||||
become: True
|
become: True
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
- name: Download unifi version '{{ unifi_version }}'
|
||||||
|
get_url:
|
||||||
|
url: "https://dl.ubnt.com/unifi/{{ unifi_version }}/UniFi.unix.zip"
|
||||||
|
dest: /tmp/UniFi.unix.zip
|
||||||
|
force: true
|
||||||
|
|
||||||
- name: Setup unifi version '{{ unifi_version }}'
|
- name: Setup unifi version '{{ unifi_version }}'
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "https://dl.ubnt.com/unifi/{{ unifi_version }}/UniFi.unix.zip"
|
src: /tmp/UniFi.unix.zip
|
||||||
dest: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
dest: "{{ unifi_base_dir }}/{{ unifi_version }}"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
@ -43,5 +49,10 @@
|
|||||||
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
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
file:
|
||||||
|
path: /tmp/UniFi.unix.zip
|
||||||
|
state: absent
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ unifi_user }}"
|
become_user: "{{ unifi_user }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user