From 6c24e7a0603e21ebfbf4b23c404e128e4c933d6e Mon Sep 17 00:00:00 2001 From: Aleksandr Malyavin Date: Sat, 7 Sep 2024 09:30:00 +0300 Subject: [PATCH] ff --- roles/configure/tasks/main.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/roles/configure/tasks/main.yaml b/roles/configure/tasks/main.yaml index 3ffe71d..36847e8 100644 --- a/roles/configure/tasks/main.yaml +++ b/roles/configure/tasks/main.yaml @@ -29,12 +29,11 @@ state: started enabled: true -- name: Disable dnsmasq +- name: Enable dnsmasq service: name: dnsmasq - state: stopped -# Отключаем dnsmasq. NetworkManager запускает экземпляр dnsmasq - enabled: false + state: started + enabled: true tags: dnsmasq - name: Get physical interfaces without LTE modem interface @@ -90,13 +89,19 @@ command: /usr/bin/nmcli c add type bridge ifname br0 autoconnect yes save yes con-name bridge stp no ipv6.method disabled ipv4.method manual ipv4.addr 10.1.10.1/24 tags: br +# - name: Configure bridge1 +# command: /usr/bin/nmcli c add type ethernet slave-type bridge con-name 'Ethernet' ifname {{ int_name }} master br0 +# loop: +# - enp90s0 +# loop_control: +# loop_var: int_name + # tags: br - name: Configure bridge1 - command: /usr/bin/nmcli c add type ethernet slave-type bridge con-name 'Ethernet' ifname {{ int_name }} master br0 + command: /usr/bin/nmcli c add type bridge-slave con-name 'Ethernet' ifname {{ int_name }} master br0 loop: - enp90s0 loop_control: loop_var: int_name - tags: br # - name: set ip for bridge # command: /usr/bin/nmcli c mod bridge ipv4.addr {{ wifi_int_ip }}/24 ipv4.method manual # tags: br