aboutsummaryrefslogblamecommitdiffstats
path: root/playbooks/wireguard.yml
blob: 320fd31af58f41b7973c8bacc982ed053b31a130 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                                      
                



                  

















                                      

# site.yml
# Deploy configuration to all servers.

---

- hosts: servers
  gather_facts: no
  roles:
    - wireguard

- hosts: alpine
  vars:
    rc_name: "wireguard"
    rc_cmd: "/usr/bin/wg-quick"
    rc_args: "up {{ _i.dcontroller }}"
    rc_user: "root"
  roles:
    - rc
  ignore_errors: true

- hosts: openbsd
  vars:
    rc_name: "wireguard"
    rc_cmd: "/usr/local/bin/wg-quick"
    rc_args: "up {{ _i.dcontroller }}"
    rc_user: "root"
  roles:
    - rc
remember that computers suck.