summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2015-08-29 19:26:22 +0200
committerChristian Franke <nobody@nowhere.ws>2015-08-29 19:26:22 +0200
commit40354757db45bc519282f410976b20cfc463f184 (patch)
tree99822eda7d431f78c5f0ae1843658be39152baef
parent22f38756dd298a4e45149ecc2dbc68d7ed1deb46 (diff)
Use update-cache instead of running apt-get update manually
-rw-r--r--roles/apache/tasks/main.yaml2
-rw-r--r--roles/cgit/tasks/main.yaml2
-rw-r--r--roles/common/tasks/main.yaml3
-rw-r--r--roles/kerberos/tasks/main.yaml2
-rw-r--r--roles/subdap/tasks/main.yaml2
-rw-r--r--roles/sublab_web/tasks/main.yaml2
-rw-r--r--roles/xinetd/tasks/main.yaml2
7 files changed, 6 insertions, 9 deletions
diff --git a/roles/apache/tasks/main.yaml b/roles/apache/tasks/main.yaml
index 40b021a..8d24f32 100644
--- a/roles/apache/tasks/main.yaml
+++ b/roles/apache/tasks/main.yaml
@@ -1,7 +1,7 @@
---
# Setup apache
- name: Install apache
- apt: name={{ item }} state=present
+ apt: name={{ item }} state=present update_cache=yes
with_items:
- apache2
- apache2-mpm-event
diff --git a/roles/cgit/tasks/main.yaml b/roles/cgit/tasks/main.yaml
index cc18696..971599c 100644
--- a/roles/cgit/tasks/main.yaml
+++ b/roles/cgit/tasks/main.yaml
@@ -1,6 +1,6 @@
---
- name: Install cgit package and depencies
- apt: name={{item}} state=present
+ apt: name={{item}} state=present update_cache=yes
with_items:
- cgit
- highlight
diff --git a/roles/common/tasks/main.yaml b/roles/common/tasks/main.yaml
index e39e0c2..3bcffb7 100644
--- a/roles/common/tasks/main.yaml
+++ b/roles/common/tasks/main.yaml
@@ -1,7 +1,4 @@
---
-- name: Ensure apt is recent
- shell: apt-get update
-
# General setup for my hosts
- name: Install common packages
apt: name={{ item }} state=present
diff --git a/roles/kerberos/tasks/main.yaml b/roles/kerberos/tasks/main.yaml
index 3bf3105..70401ed 100644
--- a/roles/kerberos/tasks/main.yaml
+++ b/roles/kerberos/tasks/main.yaml
@@ -1,7 +1,7 @@
---
# Setup kerberos
- name: Install MIT Kerberos
- apt: name=krb5-kdc state=present
+ apt: name=krb5-kdc state=present update_cache=yes
# Configure kerberos krb5_prop xinetd
- name: Configure xinetd for krb5_prop
diff --git a/roles/subdap/tasks/main.yaml b/roles/subdap/tasks/main.yaml
index 6375e6e..4d79aa1 100644
--- a/roles/subdap/tasks/main.yaml
+++ b/roles/subdap/tasks/main.yaml
@@ -1,5 +1,5 @@
---
-- apt: name={{ item }} state=present
+- apt: name={{ item }} state=present update_cache=yes
with_items:
- git
- python-ldap
diff --git a/roles/sublab_web/tasks/main.yaml b/roles/sublab_web/tasks/main.yaml
index 0aab602..7416cba 100644
--- a/roles/sublab_web/tasks/main.yaml
+++ b/roles/sublab_web/tasks/main.yaml
@@ -1,6 +1,6 @@
---
- name: Install ikiwiki package and dependencies
- apt: name={{ item }} state=present
+ apt: name={{ item }} state=present update_cache=yes
with_items:
- ikiwiki
- perlmagick
diff --git a/roles/xinetd/tasks/main.yaml b/roles/xinetd/tasks/main.yaml
index 44a7678..c493aa6 100644
--- a/roles/xinetd/tasks/main.yaml
+++ b/roles/xinetd/tasks/main.yaml
@@ -1,3 +1,3 @@
# Setup Xinetd
- name: Install Xinetd
- apt: name=xinetd state=present
+ apt: name=xinetd state=present update_cache=yes