diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 8cbde12..36cc455 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index c2e48bf..fea8f9b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,6 +6,7 @@ - cron - git state: present + update_cache: yes when: ansible_os_family == 'Debian' tags: [ server-scripts, install ] @@ -14,6 +15,7 @@ name: - crontabs - git + update_cache: yes state: present when: ansible_os_family == 'RedHat' tags: [ server-scripts, install ]