setup versioning

This commit is contained in:
Robert Kaussow 2018-07-08 22:31:07 +02:00
parent ef30e1691f
commit d22caa7292

View File

@ -19,12 +19,15 @@
name: "{{ unifi_user }}" name: "{{ unifi_user }}"
group: "{{ unifi_group }}" group: "{{ unifi_group }}"
- name: Setup working dir at '{{ unifi_base_dir }}' - name: Setup directories
file: file:
path: "{{ unifi_base_dir }}" path: "{{ item }}"
state: directory state: directory
owner: "{{ unifi_user }}" owner: "{{ unifi_user }}"
group: "{{ unifi_group }}" group: "{{ unifi_group }}"
with_items:
- "{{ unifi_base_dir }}"
- "{{ unifi_base_dir }}/{{ unifi_version }}"
become: True become: True
- name: Setup unifi version '{{ unifi_version }}' - name: Setup unifi version '{{ unifi_version }}'
@ -32,3 +35,9 @@
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
file:
src: "{{ unifi_base_dir }}/{{ unifi_version }}"
dest: "{{ unifi_base_dir }}/latest"
state: link