Compare commits
3 commits
4fe85270a6
...
905affc83b
Author | SHA1 | Date | |
---|---|---|---|
905affc83b | |||
7d268140db | |||
ddda8e13b0 |
4 changed files with 5 additions and 22 deletions
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Configure auto-upgrades
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: apt-minimal
|
|
||||||
dest: /etc/apt/apt.conf.d/20minimal
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0644
|
|
|
@ -1,14 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Install node-exporter
|
- name: Install or remove prometheus node-exporter
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: prometheus-node-exporter
|
name: prometheus-node-exporter
|
||||||
state: present
|
state: "{% if node_exporter %}present{% else %}absent{% endif %}"
|
||||||
when: node_exporter
|
|
||||||
|
|
||||||
- name: Remove node-exporter
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: prometheus-node-exporter
|
|
||||||
state: absent
|
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
when: not node_exporter
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Managed by Ansible
|
|
||||||
|
|
||||||
APT::Install-Recommends "0";
|
|
||||||
APT::Install-Suggests "0";
|
|
|
@ -6,3 +6,6 @@ Acquire::http::Proxy "http://{{ proxy_host }}:{{ proxy_port }}/";
|
||||||
|
|
||||||
# Don't download translation-files
|
# Don't download translation-files
|
||||||
Acquire::Languages "none";
|
Acquire::Languages "none";
|
||||||
|
|
||||||
|
APT::Install-Recommends "0";
|
||||||
|
APT::Install-Suggests "0";
|
||||||
|
|
Loading…
Add table
Reference in a new issue