- name: disable ipv6 tags: - disable-ipv6 copy: dest: /etc/sysctl.d/99-disable-ipv6.conf content: net.ipv6.conf.all.disable_ipv6=1 notify: restart sysctl - 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: 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