--- - apt: name: "{{ item }}" update_cache: yes with_items: - expect tags: - packages - first - name: Packages block: - apt: name: "{{ item }}" update_cache: yes with_items: - bash-completion - dnsmasq - iptables-persistent - acl - git - ansible - binutils - make - man-db - locales - debconf: name: locales question: locales/locales_to_be_generated value: en_US.UTF-8 UTF-8 vtype: multiselect tags: - packages - name: Setting config files block: - copy: src: "etc/{{ item }}" dest: /etc/ with_items: - dhcp - modprobe.d - network - iptables - hosts - sysctl: name: net.ipv4.ip_forward value: 1 sysctl_set: yes state: present reload: yes - copy: src: boot/firmware/cmdline.txt dest: /boot/firmware/cmdline.txt - template: src: etc/ethers dest: /etc/ethers mode: 0644 notify: restart dnsmasq - copy: src: etc/dnsmasq.d dest: /etc/ notify: restart dnsmasq