mirror of https://github.com/ceph/ceph-ansible.git
Change enabling of extras repo for CentOS to use ini_file
Signed-off-by: Adam Huffman <bloch@verdurin.com>pull/1042/head
parent
f7680b99b2
commit
68bafc1fd0
|
@ -39,10 +39,11 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: enable extras repo for centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
|
value: 1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
|
@ -34,13 +34,13 @@
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
||||||
# ensure extras enabled for docker
|
# ensure extras enabled for docker
|
||||||
- name: enable extras on centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
when:
|
value: 1
|
||||||
- ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,11 @@
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
||||||
- name: enable extras repo for centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
|
value: 1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
|
@ -44,6 +44,16 @@
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
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
|
- name: install docker-engine on redhat
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
|
|
@ -39,10 +39,11 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: enable extras repo for centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
|
value: 1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
|
@ -32,11 +32,12 @@
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
||||||
- name: enable extras repo on centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
|
value: 1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
|
@ -32,11 +32,12 @@
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
||||||
- name: enable extras repo on centos
|
- name: enable extras repo for centos
|
||||||
yum_repository:
|
ini_file:
|
||||||
name: extras
|
dest: /etc/yum.repos.d/CentOS-Base.repo
|
||||||
state: present
|
section: extras
|
||||||
enabled: yes
|
option: enabled
|
||||||
|
value: 1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
tags:
|
tags:
|
||||||
with_pkg
|
with_pkg
|
||||||
|
|
Loading…
Reference in New Issue