Files
Terraform/roles/ind/debcache/debcache-install.yml
2025-04-08 23:21:05 -05:00

47 lines
950 B
YAML

---
- hosts: all
become: yes
remote_user: ansible
gather_facts: false
vars:
tasks:
- 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