2019-04-26 09:27:55 +02:00
|
|
|
---
|
2021-03-17 00:43:57 +01:00
|
|
|
- name: perform versionscheck
|
|
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
2019-04-26 09:27:55 +02:00
|
|
|
|
|
|
|
- name: Run the equivalent of "pacman -Syu" as a separate step
|
2021-03-17 00:43:57 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.pacman:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
2019-04-26 09:27:55 +02:00
|
|
|
when: ansible_os_family == 'Archlinux'
|
|
|
|
|
|
|
|
- name: Install OpenVPN for ArchLinux
|
2021-03-17 00:43:57 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.pacman:
|
|
|
|
name:
|
2019-04-26 09:27:55 +02:00
|
|
|
- openvpn
|
|
|
|
- bridge-utils
|
|
|
|
- easy-rsa
|
|
|
|
state: present
|
|
|
|
when: ansible_os_family == 'Archlinux'
|
|
|
|
|
2019-04-26 11:06:28 +02:00
|
|
|
- name: Install OpenVPN all
|
2021-03-17 00:43:57 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
2019-04-26 11:06:28 +02:00
|
|
|
- openvpn
|
|
|
|
- bridge-utils
|
|
|
|
- easy-rsa
|
|
|
|
state: present
|
|
|
|
when: ansible_os_family != 'Archlinux'
|
|
|
|
|
2019-04-26 09:27:55 +02:00
|
|
|
- name: Add the tun module
|
2021-03-17 00:43:57 +01:00
|
|
|
become: true
|
|
|
|
community.general.modprobe:
|
2019-04-26 09:27:55 +02:00
|
|
|
name: tun
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Add the bridge module
|
2021-03-17 00:43:57 +01:00
|
|
|
become: true
|
|
|
|
community.general.modprobe:
|
2019-04-26 09:27:55 +02:00
|
|
|
name: bridge
|
|
|
|
state: present
|