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