diff --git a/Config_Wireguard.yml b/Config_Wireguard.yml index fb472d6f6b4d8095dc3ed2ff8c2495dc99af1336..94db76496b76c36acc234a1ba3719583c3e3f45b 100644 --- a/Config_Wireguard.yml +++ b/Config_Wireguard.yml @@ -70,20 +70,18 @@ update_cache: yes # check_mode: yes - - name: Install nginx and Wireguard + - name: Install nginx ansible.builtin.apt: pkg: - nginx - wireguard - wireguard-tools - - iptables - curl state: present - # check_mode: yes + - name: Remove internet to host ansible.builtin.shell: cmd: "ip r del default" - # check_mode: yes - name: Setup index.html on H2 hosts: H2 @@ -156,6 +154,4 @@ - name: Print result debug: msg: "{{ result.stdout_lines }}" - - ... \ No newline at end of file