Robert Kaussow
def983841b
All checks were successful
continuous-integration/drone/pr Build is passing
33 lines
758 B
YAML
33 lines
758 B
YAML
---
|
|
- name: Set current unifi version
|
|
set_fact:
|
|
unifi_current_version: "{{ (ansible_local.unifi | default (dict(version='0.0.0')))['version'] }}"
|
|
|
|
- debug:
|
|
msg: Current version is '{{ unifi_current_version }}'
|
|
|
|
- block:
|
|
- name: Install requirements
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ __unifi_deps }}"
|
|
|
|
- name: Create group '{{ unifi_group }}'
|
|
group:
|
|
name: "{{ unifi_group }}"
|
|
state: present
|
|
|
|
- name: Create user '{{ unifi_user }}'
|
|
user:
|
|
name: "{{ unifi_user }}"
|
|
group: "{{ unifi_group }}"
|
|
|
|
- name: Setup local facts
|
|
file:
|
|
path: /etc/ansible/facts.d
|
|
state: directory
|
|
mode: 0755
|
|
become: True
|
|
become_user: root
|