-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
28 lines (22 loc) · 816 Bytes
/
main.yml
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
26
27
28
---
- hosts: all
become: true
pre_tasks:
- name: Vars
include_vars: vars.yml
- name: Install packages
import_tasks: tasks/packages.yml
when: ansible_facts['distribution'] == "Ubuntu" and
(ansible_facts['distribution_major_version'] == "18" or ansible_facts['distribution_major_version'] == "20")
- name: Install packages for Debian 12
import_tasks: tasks/pkgs12.yml
when: ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "12"
- name: Check omada status
import_tasks: tasks/preset.yml
tasks:
- name: Download Controller from tplink
import_tasks: tasks/setup.yml
when: omada_preset.rc == 1
- name: Install Omada
import_tasks: tasks/omada.yml
when: omada_preset.rc == 1