-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.yml
More file actions
48 lines (39 loc) · 1.42 KB
/
main.yml
File metadata and controls
48 lines (39 loc) · 1.42 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- name: Install and configure VPNTV software
hosts: vpntv
become: 'yes'
pre_tasks:
- name: Load configuration (with defaults from example file)
ansible.builtin.include_vars: "{{ item }}"
loop:
- example.config.yml
- config.yml
- name: Debian packages Upgrade
apt:
upgrade: 'yes'
update_cache: 'yes'
cache_valid_time: '3600'
when: ansible_facts.os_family == 'Debian'
- name: Arch packages Upgrade
pacman:
upgrade: 'yes'
when: ansible_facts.os_family == 'Arch'
handlers:
- name: Include handlers
ansible.builtin.import_tasks: tasks/handlers.yml
tasks:
- name: Install and configure OpenVPN client
ansible.builtin.import_tasks: tasks/ovpn-client.yml
when: ovpnclient_enable
- name: Installing WiFi dongle modules
ansible.builtin.import_tasks: tasks/wifi-modules.yml
when: wifi_mod_enable
- name: Wireless Connection Type 1. TV WiFi to VPNTV via Router Ethernet port
ansible.builtin.import_tasks: tasks/config-eth2wifi.yml
when: ethernet2wifi_enable
- name: Wireless Connection Type 2. TV WiFi to VPNTV via Router WiFi
ansible.builtin.import_tasks: tasks/config-wifi2wifi.yml
when: wifi2wifi_enable
- name: Wired Connection. TV Ethernet to VPNTV via Router WiFi
ansible.builtin.import_tasks: tasks/config-wifi2eth.yml
when: wifi2ethernet_enable