Skip to content

Commit

Permalink
ansible enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
iamckn authored Jul 6, 2019
1 parent b1692b6 commit e0ede9e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions middleman/wireguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
- name: Add the WireGuard PPA
apt_repository:
repo: 'ppa:wireguard/wireguard'

- name: Install WireGuard and other requirements
apt: name={{ item }} state=installed update_cache=true
with_items:
- linux-headers-{{ kernel_release.stdout }}
- linux-headers-generic
- wireguard-dkms
- wireguard-tools
- python2.7
apt:
name:
- linux-headers-{{ kernel_release.stdout }}
- linux-headers-generic
- wireguard-dkms
- wireguard-tools
- python2.7
state: present
update_cache: true

- name: Generate private and public keys for the client and server
shell: umask 077; wg genkey | tee {{ item.private }} | wg pubkey > {{ item.public }}
Expand Down Expand Up @@ -89,4 +91,4 @@
shell: sleep 2 && shutdown -r now
async: 1
poll: 0
ignore_errors: true
ignore_errors: true

0 comments on commit e0ede9e

Please sign in to comment.