Skip to content
Snippets Groups Projects
Commit c7bd2a2a authored by Greg Althaus's avatar Greg Althaus
Browse files

Need to use separate stanzas for each repo because the

args are different.  Sigh.
parent 87fa167e
No related branches found
No related tags found
No related merge requests found
...@@ -33,11 +33,13 @@ ...@@ -33,11 +33,13 @@
always_run: True always_run: True
tags: always tags: always
- name: Update package management cache - name: Update package management cache (APT)
action: apt: update_cache=yes
module: "{{ ansible_pkg_mgr }}" when: ansible_pkg_mgr == 'apt'
update_cache: yes
when: ansible_pkg_mgr in ['apt', 'yum'] - name: Update package management cache (YUM)
yum: update_cache=yes name='*'
when: ansible_pkg_mgr == 'yum'
- name: Install python-apt for Debian distribs - name: Install python-apt for Debian distribs
shell: apt-get install -y python-apt shell: apt-get install -y python-apt
......
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