-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.yml
More file actions
25 lines (21 loc) · 679 Bytes
/
local.yml
File metadata and controls
25 lines (21 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- name: Install UniFi Network Application role
hosts: localhost
tasks:
- name: Install role to local machine
ansible.builtin.command: ansible-galaxy role install -r roles/requirements.yml
args:
creates: ./roles/treykee.unifi-network
- name: Apply UniFi Network Application role
hosts: localhost
tasks:
- name: Stat role path
ansible.builtin.stat:
path: ./roles/treykee.unifi-network
register: target_path
- name: Apply role
ansible.builtin.include_role:
name: treykee.unifi-network
vars:
unifi_version: 9.0.108
unifi_fqdn: "unifi.example.com"
when: target_path.stat.exists