diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-07-25 00:09:01 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-09-26 16:14:53 +0200 |
| commit | cc1b02f99e457d2a5a440698e9bae1ca30f408e1 (patch) | |
| tree | d26b3086697996b27f9e459cadcf195adc60eebb /tasks/network.yml | |
| parent | d1c9aa40ccb5910076d0ec94843efccf62ee006a (diff) | |
Initial impl of vnet jails
Diffstat (limited to 'tasks/network.yml')
| -rw-r--r-- | tasks/network.yml | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/tasks/network.yml b/tasks/network.yml index ed57a13..a8749a7 100644 --- a/tasks/network.yml +++ b/tasks/network.yml @@ -12,7 +12,7 @@ when: resolv_conf.changed - name: Restart networking if interface configuration changed - shell: service netif restart && service routing restart + shell: service netif restart && service routing restart && service dhclient restart wan0 when: rc_conf.changed or resolv_conf.changed - name: Set up sshd @@ -67,53 +67,6 @@ shell: pfctl -f /etc/pf.conf when: pf_conf.changed -- name: Configure nginx.conf - template: - src: usr_local_etc_nginx_nginx.conf.j2 - dest: /usr/local/etc/nginx/nginx.conf - owner: root - group: wheel - mode: "0644" - register: nginx_conf - -- name: Generate LetsEncrypt certs - shell: certbot certonly --standalone -n -m jan@jantuomi.fi --agree-tos -d {{ item }} - loop: "{{ static_sites | selectattr('tls') | map(attribute='host') }}" - when: nginx_conf.changed - -- name: Copy over jan.systems HTML - ansible.posix.synchronize: - src: "{{ jan_systems_html_dir.rstrip('/') + '/' }}" - dest: /usr/local/www/jan.systems - -- name: Start nginx - service: - name: nginx - state: started - register: started_nginx - -- name: Restart nginx - service: - name: nginx - state: restarted - when: not started_nginx.changed and nginx_conf.changed - -- name: Set up restore_jail_aliases.sh - template: - src: usr_local_bin_restore_jail_aliases.sh.j2 - dest: /usr/local/bin/restore_jail_aliases.sh - owner: root - group: wheel - mode: "0755" - -- name: Set up devd lan0_jail_restore.conf - template: - src: etc_devd_lan0_jail_restore.conf.j2 - dest: /etc/devd/lan0_jail_restore.conf - owner: root - group: wheel - mode: "0644" - - name: Set up /usr/local/etc/do_dyndns_auth template: src: usr_local_etc_do_dyndns_auth.j2 |
