Files
Terraform/roles/ind/debcache/debcache-install.yml
2025-10-15 00:06:35 -05:00

68 lines
1.5 KiB
YAML

---
- hosts: all
become: yes
remote_user: ansible
gather_facts: true
vars:
tasks:
- name: Setup-netbird.yml - setting up netbird mesh vpn
import_tasks: ../../lib/setup-netbird.yml
- name: Create apt-cacher-ng user
user:
name: apt-cacher-ng
uid: 2002
group: apt-cacher-ng
state: present
create_home: yes
home: /home/apt-cacher-ng
shell: /bin/bash
- 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
import_tasks: ../../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 apt-cacher-ng Service
systemd:
name: apt-cacher-ng
state: started
enabled: yes