2017-10-10 16:34:53 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Evolinux config for APT
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2017-10-10 16:34:53 +02:00
|
|
|
dest: /etc/apt/apt.conf.d/z-evolinux.conf
|
|
|
|
line: "{{ item.line }}"
|
|
|
|
regexp: "{{ item.regexp }}"
|
|
|
|
create: yes
|
|
|
|
state: present
|
|
|
|
mode: "0640"
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2019-06-21 10:18:54 +02:00
|
|
|
- { line: "APT::Install-Recommends \"false\";", regexp: 'APT::Install-Recommends' }
|
|
|
|
- { line: "APT::Install-Suggests \"false\";", regexp: 'APT::Install-Suggests' }
|
2020-11-24 11:19:18 +01:00
|
|
|
- { line: "APT::Periodic::Enable \"0\";", regexp: 'APT::Periodic::Enable' }
|
2019-06-21 10:18:54 +02:00
|
|
|
tags:
|
|
|
|
- apt
|
2023-03-17 22:32:11 +01:00
|
|
|
when: apt_evolinux_config | bool
|
2017-10-10 16:34:53 +02:00
|
|
|
|
|
|
|
- name: DPkg invoke hooks
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2017-10-10 16:34:53 +02:00
|
|
|
dest: /etc/apt/apt.conf.d/z-evolinux.conf
|
|
|
|
line: "{{ item }}"
|
|
|
|
create: yes
|
|
|
|
state: present
|
|
|
|
mode: "0640"
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2019-06-21 10:18:54 +02:00
|
|
|
- "DPkg::Pre-Invoke { \"df /tmp | grep -q /tmp && mount -oremount,exec /tmp || true\"; };"
|
|
|
|
- "DPkg::Pre-Invoke { \"df /usr | grep -q /usr && mount -oremount,rw /usr || true\"; };"
|
|
|
|
- "DPkg::Post-Invoke { \"df /tmp | grep -q /tmp && mount -oremount /tmp || true\"; };"
|
|
|
|
- "DPkg::Post-Invoke { \"df /usr | grep -q /usr && mount -oremount /usr || true\"; };"
|
|
|
|
tags:
|
|
|
|
- apt
|
2023-03-17 22:32:11 +01:00
|
|
|
when: apt_hooks | bool
|
2017-10-10 16:34:53 +02:00
|
|
|
|
|
|
|
- name: Remove Aptitude
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.apt:
|
2017-10-10 16:34:53 +02:00
|
|
|
name: aptitude
|
|
|
|
state: absent
|
2019-06-21 10:18:54 +02:00
|
|
|
tags:
|
|
|
|
- apt
|
2023-03-17 22:32:11 +01:00
|
|
|
when: apt_remove_aptitude | bool
|