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
2021-03-17 00:43:57 +01:00

42 lines
888 B
YAML

---
- name: perform versionscheck
ansible.builtin.include_tasks: versioncheck.yml
- name: Run the equivalent of "pacman -Syu" as a separate step
become: true
ansible.builtin.pacman:
update_cache: true
upgrade: true
when: ansible_os_family == 'Archlinux'
- name: Install OpenVPN for ArchLinux
become: true
ansible.builtin.pacman:
name:
- openvpn
- bridge-utils
- easy-rsa
state: present
when: ansible_os_family == 'Archlinux'
- name: Install OpenVPN all
become: true
ansible.builtin.package:
name:
- openvpn
- bridge-utils
- easy-rsa
state: present
when: ansible_os_family != 'Archlinux'
- name: Add the tun module
become: true
community.general.modprobe:
name: tun
state: present
- name: Add the bridge module
become: true
community.general.modprobe:
name: bridge
state: present