0c309a18c8
Update Apt cache prior to all package installation tasks. Adds apt_cache_valid_time, which defaults to 3600 seconds. This allows the time for which the Apt cache is valid to be configured. Change-Id: I0ecf4f4ce9b7333d3e41c69c3f908bee83391781 Story: 2004960 Task: 41766
9 lines
301 B
YAML
9 lines
301 B
YAML
---
|
|
- name: Ensure required packages are installed
|
|
package:
|
|
name: "{{ dev_tools_packages }}"
|
|
state: present
|
|
cache_valid_time: "{{ apt_cache_valid_time if ansible_os_family == 'Debian' else omit }}"
|
|
update_cache: "{{ True if ansible_os_family == 'Debian' else omit }}"
|
|
become: True
|