Ensure IPv6 privacy

This commit is contained in:
Scott Wallace 2019-04-20 10:18:15 +01:00
parent ec39d29425
commit 837d0d1d16

View file

@ -16,6 +16,31 @@
dest: '~/.conkyrc' dest: '~/.conkyrc'
mode: '0400' mode: '0400'
- name: 'IPv6: Privacy'
tags:
- config
- ipv6
block:
- name: 'IPv6: Privacy: Temporary addressing'
lineinfile:
path: "/etc/ufw/sysctl.conf"
state: present
regexp: "net/ipv6/conf/{{ item }}/use_tempaddr"
line: "net/ipv6/conf/{{ item }}/use_tempaddr=2"
loop: ['default', 'all']
become: true
- name: 'IPv6: Privacy: Detect interfaces'
shell: "nmcli connection show | tail -n +2 | awk '{print $2}'"
register: nmcli_connections
- debug:
var: nmcli_connections
- name: 'IPv6: Privacy: Network Manager enforcement'
command: "nmcli connection modify uuid {{ item }} ipv6.ip6-privacy 2"
loop: "{{ nmcli_connections.stdout_lines }}"
- name: 'Wireguard' - name: 'Wireguard'
tags: tags:
- config - config
@ -49,8 +74,7 @@
- name: 'Wireguard: Service enabled' - name: 'Wireguard: Service enabled'
service: service:
name: 'wg-quick@wg0' name: 'wg-quick@wg0'
enabled: true enabled: false
state: started
- name: 'Abert' - name: 'Abert'
tags: tags: