Remove contentdir hack

Latest version of CentOS should not need this anymore

Change-Id: Ief83c39420cfb4509f16d4e357d704025b116134
This commit is contained in:
Thiago da Silva 2018-07-25 18:06:53 -04:00
parent 00373dad61
commit 6a039903c6

View File

@ -15,32 +15,6 @@
- hosts: all - hosts: all
become: true become: true
tasks: tasks:
- name: Check for /etc/yum/vars/contentdir
stat:
path: /etc/yum/vars/contentdir
register: yum_contentdir
- when: not yum_contentdir.stat.exists
block:
- name: Discover package architecture
command: rpm -q --qf "%{arch}" -f /etc/redhat-release
register: rpm_arch
- debug:
msg: Package architecture is '{{ rpm_arch.stdout }}'
- name: Set contentdir to altarch
set_fact:
yum_contentdir: altarch
when: rpm_arch.stdout in ['aarch64', 'ppc64le']
- name: Populate /etc/yum/vars/contentdir
copy:
dest: /etc/yum/vars/contentdir
content: "{{ yum_contentdir|default('centos') }}"
become: true
- name: installing dependencies - name: installing dependencies
yum: name={{ item }} state=present yum: name={{ item }} state=present
with_items: with_items: