infra-ansible

ansible script to ship alpine/ssh/wireguard

git clone https://9o.is/git/infra-ansible.git

main.yml

(467B)


      1 ---
      2 - name: restart networking
      3   service:
      4     name: networking
      5     state: restarted
      6 
      7 - name: restart sshd
      8   service:
      9     name: sshd
     10     state: restarted
     11 
     12 - name: restart server wireguard
     13   service:
     14     name: wg-quick.wg0
     15     state: restarted
     16 
     17 - name: restart client wireguard
     18   become: true
     19   delegate_to: localhost
     20   service:
     21     name: wg-quick@{{ wg_client_iface }}
     22     state: restarted
     23 
     24 - name: restart nftables
     25   service:
     26     name: nftables
     27     state: restarted
     28