mirror of
https://github.com/DO1JLR/ansible_linux_desktop_setup.git
synced 2024-09-14 19:54:51 +02:00
add roleto install openvpn
This commit is contained in:
parent
b12970e78e
commit
6656e67a09
2 changed files with 33 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
# some ssh role parameters
|
||||
ssh_public_key_store: 'admin_ssh_keys'
|
||||
home_sweet_home: false
|
||||
install_keychain: true
|
||||
# i3wm config:
|
||||
|
||||
i3_packages_extra:
|
||||
|
|
31
roles/openvpn/tasks/main.yml
Normal file
31
roles/openvpn/tasks/main.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
|
||||
- name: Run the equivalent of "pacman -Syu" as a separate step
|
||||
become: yes
|
||||
pacman:
|
||||
update_cache: yes
|
||||
upgrade: yes
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
- name: Install OpenVPN for ArchLinux
|
||||
become: yes
|
||||
pacman:
|
||||
name:
|
||||
- openvpn
|
||||
- bridge-utils
|
||||
- easy-rsa
|
||||
state: present
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
- name: Add the tun module
|
||||
become: yes
|
||||
modprobe:
|
||||
name: tun
|
||||
state: present
|
||||
|
||||
- name: Add the bridge module
|
||||
become: yes
|
||||
modprobe:
|
||||
name: bridge
|
||||
state: present
|
||||
|
Loading…
Reference in a new issue