fix(ansible): apply private VPN routes before verification
OpenVPN Ansible / Ansible Syntax Check (push) Successful in 11s
OpenVPN Ansible / Ansible Lint (push) Successful in 17s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Failing after 1m25s
OpenVPN Ansible / Generate SBOM (push) Skipped
OpenVPN Ansible / Scan SBOM with Trivy (push) Skipped
OpenVPN Ansible / Ansible Syntax Check (push) Successful in 11s
OpenVPN Ansible / Ansible Lint (push) Successful in 17s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Failing after 1m25s
OpenVPN Ansible / Generate SBOM (push) Skipped
OpenVPN Ansible / Scan SBOM with Trivy (push) Skipped
This commit is contained in:
@@ -40,7 +40,11 @@
|
||||
mode: "0600"
|
||||
validate: python3 -c "import yaml,sys; yaml.safe_load(open(sys.argv[1]))" %s
|
||||
when: private_routing_netplan_files.matched | default(0) > 0
|
||||
notify: Apply private VPN route
|
||||
|
||||
- name: Apply Netplan route configuration
|
||||
ansible.builtin.command: netplan apply
|
||||
changed_when: false
|
||||
when: private_routing_netplan_files.matched | default(0) > 0
|
||||
|
||||
- name: Install systemd-networkd route drop-in
|
||||
ansible.builtin.copy:
|
||||
@@ -57,7 +61,12 @@
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: private_routing_netplan_files.matched | default(0) == 0
|
||||
notify: Apply private VPN route
|
||||
|
||||
- name: Apply systemd-networkd route configuration
|
||||
ansible.builtin.systemd:
|
||||
name: systemd-networkd
|
||||
state: restarted
|
||||
when: private_routing_netplan_files.matched | default(0) == 0
|
||||
|
||||
- name: Verify selected route to internet
|
||||
ansible.builtin.command: ip -4 route get 8.8.8.8
|
||||
|
||||
Reference in New Issue
Block a user