This commit is contained in:
Scott Wallace 2019-04-20 10:23:21 +01:00
parent 837d0d1d16
commit add3bdb4f8

View file

@ -21,7 +21,7 @@
- config - config
- ipv6 - ipv6
block: block:
- name: 'IPv6: Privacy: Temporary addressing' - name: 'IPv6: Privacy: Temporary addressing defaults'
lineinfile: lineinfile:
path: "/etc/ufw/sysctl.conf" path: "/etc/ufw/sysctl.conf"
state: present state: present
@ -31,12 +31,9 @@
become: true become: true
- name: 'IPv6: Privacy: Detect interfaces' - name: 'IPv6: Privacy: Detect interfaces'
shell: "nmcli connection show | tail -n +2 | awk '{print $2}'" shell: 'nmcli -t connection show | cut -f2 -d:'
register: nmcli_connections register: nmcli_connections
- debug:
var: nmcli_connections
- name: 'IPv6: Privacy: Network Manager enforcement' - name: 'IPv6: Privacy: Network Manager enforcement'
command: "nmcli connection modify uuid {{ item }} ipv6.ip6-privacy 2" command: "nmcli connection modify uuid {{ item }} ipv6.ip6-privacy 2"
loop: "{{ nmcli_connections.stdout_lines }}" loop: "{{ nmcli_connections.stdout_lines }}"