aboutsummaryrefslogblamecommitdiffstats
path: root/playbooks/network.yml
blob: 93410724a0d91e91e55e2beb0b711a319d039a8a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
 

                                  
 


                  
                  

                       
 




                         
                
        







                                              
                   
                    


                    
                  

# network ~~ playbooks/network.yml
# common network configuration

---

- hosts: localhost
  gather_facts: no
  roles:
    - { role: ssh_dns }

- hosts: all
  gather_facts: no
  roles:
    - { role: wireguard }

- hosts: servers
  roles:

    - role: rc
      vars:
        rc_cmd: "{{ path_wgquick }}"
        rc_args: "up {{ global.dcontroller }}"
        rc_name: wireguard
        rc_user: "{{ user_root }}"

    - { role: dns }
    - { role: sshd }

- hosts: dcontroller
  roles:
    - { role: pf }
remember that computers suck.