Skip to content

Commit 6105553

Browse files
author
Anandkumar Patel
committed
remove apt-cache to speed up deploys
1 parent a162d32 commit 6105553

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
- name: install build essentials
33
sudo: true
4-
action: apt pkg="build-essential" state=present update_cache=yes
4+
action: apt pkg="build-essential" state=present

ansible/roles/datadog/tasks/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
apt_repository:
2121
repo='deb http://apt.datadoghq.com/ stable main'
2222
state=present
23-
update_cache=yes
2423

2524
- name: Create main Datadog agent configuration file
2625
tags: ['datadog']

ansible/roles/docker/tasks/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
apt:
1616
pkg="linux-image-extra-{{ ansible_kernel }}"
1717
state=present
18-
update_cache=yes
1918

2019
- name: install apt-transport-https
2120
sudo: yes
2221
apt:
2322
pkg="apt-transport-https"
2423
state=present
25-
update_cache=yes
2624

2725
- name: add docker repository key
2826
sudo: yes
@@ -35,7 +33,6 @@
3533
sudo: yes
3634
apt_repository:
3735
repo: "deb https://get.docker.com/ubuntu docker main"
38-
update_cache: yes
3936
state: present
4037

4138
- name: copy docker config file
@@ -50,7 +47,7 @@
5047
- name: install docker
5148
sudo: yes
5249
when: restart is defined
53-
apt: pkg="{{ docker_package_name }}" state=present update_cache=yes force=yes
50+
apt: pkg="{{ docker_package_name }}" state=present force=yes
5451

5552
- name: restart docker
5653
when: copied_config.changed and restart is defined

ansible/roles/nginx/tasks/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
- name: install nginx
33
sudo: yes
44
apt:
5-
update_cache=yes
65
pkg=nginx
76
state=present
87

@@ -35,7 +34,7 @@
3534
apt:
3635
pkg=nodejs
3736
state=present
38-
37+
3938
- name: copy node script for nginx
4039
sudo: yes
4140
copy:

0 commit comments

Comments
 (0)