Merge pull request #1052 from verdurin/revert-1042-centos-extras-ini_file

Revert "Change enabling of extras repo for CentOS to use ini_file"
pull/1067/head
Leseb 2016-10-31 16:31:51 +01:00 committed by GitHub
commit fb8167cf79
7 changed files with 29 additions and 44 deletions

View File

@ -39,11 +39,10 @@
failed_when: false
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg

View File

@ -34,13 +34,13 @@
with_pkg
# ensure extras enabled for docker
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
when: ansible_distribution == 'CentOS'
- name: enable extras on centos
yum_repository:
name: extras
state: present
enabled: yes
when:
- ansible_distribution == 'CentOS'
tags:
with_pkg

View File

@ -25,11 +25,10 @@
with_pkg
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg

View File

@ -44,16 +44,6 @@
tags:
with_pkg
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install docker-engine on redhat
yum:
name: "{{ item }}"

View File

@ -39,11 +39,10 @@
failed_when: false
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg

View File

@ -32,12 +32,11 @@
tags:
with_pkg
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg

View File

@ -32,12 +32,11 @@
tags:
with_pkg
- name: enable extras repo for centos
ini_file:
dest: /etc/yum.repos.d/CentOS-Base.repo
section: extras
option: enabled
value: 1
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg