--- - hosts: all become: yes remote_user: ansible gather_facts: false vars: tasks: - name: Set apt-cacher-ng cache directory permissions file: path: /var/cache/apt-cacher-ng state: directory owner: apt-cacher-ng group: apt-cacher-ng mode: '0755' recurse: no - name: Upgrade-packages.yml - update packages include: ../../lib/upgrade-packages.yml - name: Install nfs Packages apt: name: - nfs-common state: present update_cache: no - name: Install Python Packages apt: name: - python3-full - python3-pip state: present update_cache: yes - name: Pre-configure apt-cacher-ng to enable tunnel ansible.builtin.debconf: name: apt-cacher-ng question: apt-cacher-ng/tunnelenable value: true vtype: boolean - name: Install apt-cacher-ng apt: name: - apt-cacher-ng state: present update_cache: no - name: Start downloader Service systemd: name: apt-cacher-ng state: started enabled: yes