Skip to content
Snippets Groups Projects
Commit a5285db5 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

working on local cache only, so having no internet does not cause a timeout

parent 9b4d78cc
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,8 @@
- name: get enabled repos
#shell: yum repolist | grep -v "repo id" | grep -v "Loaded plugins" | head -n -1 | cut -f 1 -d '/' | sed -s 's/\!//'
shell: yum repolist all | grep enabled | cut -f 1 -d '/' | sed -s 's/\!//'
#shell: yum repolist all | grep enabled | cut -f 1 -d '/' | sed -s 's/\!//'
shell: yum repolist enabled -C | cut -f 1 -d '/' | sed -s 's/\!//'
when: ansible_os_family == 'RedHat'
register: repolistenabled
check_mode: no
......@@ -48,7 +49,6 @@
when: ansible_os_family == 'RedHat'
register: repoenable
- name: disable unwanted repos
shell: yum-config-manager --disable "{{ item }}"
with_items: "{{ repolistenabled.stdout_lines|difference(yumenablerepo) }}"
......
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