Skip to content
Snippets Groups Projects
Commit f5508b17 authored by ant31's avatar ant31
Browse files

Use update_cache when possible

parent 8f7d5524
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,12 @@
always_run: True
tags: always
- name: Update package management cache
action:
module: "{{ ansible_pkg_mgr }}"
update_cache: yes
when: ansible_pkg_mgr in ['apt', 'yum']
- name: Install python-apt for Debian distribs
shell: apt-get install -y python-apt
when: ansible_os_family == "Debian"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment