1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_linux_desktop_setup.git synced 2024-09-14 19:54:51 +02:00
ansible_linux_desktop_setup/roles/openvpn/tasks/main.yml

43 lines
888 B
YAML
Raw Normal View History

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