summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-26 12:42:04 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-01-26 12:42:04 +0100
commit82a589576a934e0d40f532cbf170a705142fb73a (patch)
tree19f298540ccb065279ac3ecddd66162f4c2b75f2 /common
parent19d6e85fca00aafd598dc2528109753037fb27d0 (diff)
downloadansible-roles-master.tar.gz
ansible-roles-master.tar.bz2
common: Deactive installation of recommended dependenciesHEADmaster
Diffstat (limited to 'common')
-rw-r--r--common/files/apt-80recommends1
-rw-r--r--common/tasks/apt.yaml7
-rw-r--r--common/tasks/main.yaml1
3 files changed, 9 insertions, 0 deletions
diff --git a/common/files/apt-80recommends b/common/files/apt-80recommends
new file mode 100644
index 0000000..96d6728
--- /dev/null
+++ b/common/files/apt-80recommends
@@ -0,0 +1 @@
+APT::Install-Recommends "false";
diff --git a/common/tasks/apt.yaml b/common/tasks/apt.yaml
new file mode 100644
index 0000000..9b3bdae
--- /dev/null
+++ b/common/tasks/apt.yaml
@@ -0,0 +1,7 @@
+- name: Copy apt configuration
+ copy:
+ src: apt-80recommends
+ dest: /etc/apt/apt.conf.d/80recommends
+ owner: root
+ group: root
+ mode: u=rw,g=r,o=r
diff --git a/common/tasks/main.yaml b/common/tasks/main.yaml
index 819cbe6..7c56e23 100644
--- a/common/tasks/main.yaml
+++ b/common/tasks/main.yaml
@@ -1,5 +1,6 @@
---
- include: packages.yaml
+- include: apt.yaml
- include: sh.yaml
- include: ssh.yaml
- include: sudo.yaml