Skip to content

Commit

Permalink
fix: update package cache
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed May 1, 2020
1 parent 5776960 commit 9919f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@
content: "Acquire::http::Proxy \"{{ lookup('env', 'APT_PROXY') }}\"; Acquire::https::Proxy \"false\";"
dest: /etc/apt/apt.conf.d/01proxy
failed_when: False
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 86400
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- cron
- git
state: present
update_cache: yes
when: ansible_os_family == 'Debian'
tags: [ server-scripts, install ]

Expand All @@ -14,6 +15,7 @@
name:
- crontabs
- git
update_cache: yes
state: present
when: ansible_os_family == 'RedHat'
tags: [ server-scripts, install ]
Expand Down

0 comments on commit 9919f7c

Please sign in to comment.