breakout debcache to seprate role as vpses will not use it

This commit is contained in:
tolerryan
2025-06-01 16:27:18 -05:00
parent 544d2c877c
commit 15433d1e38
14 changed files with 53 additions and 70 deletions

View File

@@ -0,0 +1,21 @@
- name: Configure apt proxy
ansible.builtin.lineinfile:
path: /etc/apt/apt.conf.d/proxy
line: 'Acquire::http { Proxy "http://192.168.0.60:3142"; }'
state: present
create: yes
mode: '0644'
- name: Set up apt proxy configuration
copy:
content: |
Acquire::http::Proxy "http://debcache:3142";
dest: /etc/apt/apt.conf.d/00cacher
mode: '0644'
- name: Update apt cache
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 3600

View File

@@ -1,18 +1,3 @@
- name: Configure apt proxy
ansible.builtin.lineinfile:
path: /etc/apt/apt.conf.d/proxy
line: 'Acquire::http { Proxy "http://192.168.0.60:3142"; }'
state: present
create: yes
mode: '0644'
- name: Set up apt proxy configuration
copy:
content: |
Acquire::http::Proxy "http://debcache:3142";
dest: /etc/apt/apt.conf.d/00cacher
mode: '0644'
- name: Update apt cache
ansible.builtin.apt:
update_cache: yes