29 lines
761 B
YAML
29 lines
761 B
YAML
---
|
|
- name: Enable Extra Packages for Enterprise Linux
|
|
become: true
|
|
yum_repository:
|
|
name: epel
|
|
description: Extra Packages for Enterprise Linux
|
|
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
|
|
|
|
- name: Install Extra Packages for Enterprise Linux GPG key
|
|
become: true
|
|
rpm_key:
|
|
state: present
|
|
key: https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
|
|
|
- name: Enable Inline with Upstream Stable
|
|
become: true
|
|
yum:
|
|
state: latest
|
|
name: https://centos7.iuscommunity.org/ius-release.rpm
|
|
|
|
- name: Disable yum subscription-manager
|
|
become: true
|
|
lineinfile:
|
|
regex: enabled=1
|
|
line: enabled=0
|
|
path: /etc/yum/pluginconf.d/subscription-manager.conf
|
|
create: yes
|
|
state: present
|