- tags: enable-ipv6 file: path: "/etc/sysctl.d/{{ item }}" state: absent notify: restart sysctl with_items: - 99-ipv6.conf - 99-enable-ipv6.conf - 99-disable-ipv6.conf - name: /etc/hosts copy: dest: /etc/hosts content: | 127.0.0.1 localhost 127.0.1.1 {{ ansible_ssh_extra_args }}.trygvis.io {{ ansible_ssh_extra_args }} # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters - name: Remove default network setup packages apt: name: "{{ item }}" state: absent purge: true with_items: - ifupdown - net-tools - iproute2 - isc-dhcp-client - name: system setup tags: - packages block: - name: misc packages apt: name: "{{ item }}" install_recommends: no with_items: - systemd-cron - ca-certificates - unzip - sudo - vim - less - ack