官术网_书友最值得收藏!

Enabling EPEL

EPEL is the most important repository for Enterprise Linux and it contains a lot of additional packages. It's also a safe repository, since no package in EPEL will conflict with packages in the base repository.

To enable EPEL in RHEL/CentOS 7, it is enough to just install the epel-release package. To do so in Ansible, we will use the following:

- name: Ensure EPEL is enabled 
  yum: 
    name: epel-release 
    state: present 
  become: True 

As you can see, we have used the yum module, as we did in one of the first examples of the chapter, specifying the name of the package and that we want it to be present.

主站蜘蛛池模板: 台前县| 萨嘎县| 霸州市| 新巴尔虎右旗| 含山县| 建德市| 西城区| 峨眉山市| 丽水市| 昌黎县| 双柏县| 崇阳县| 金山区| 永清县| 罗田县| 和龙市| 广饶县| 伊宁县| 乐安县| 垫江县| 栾城县| 祁门县| 天等县| 嘉荫县| 扎囊县| 文昌市| 龙陵县| 通辽市| 定安县| 平果县| 吉首市| 合阳县| 新源县| 高陵县| 遂宁市| 博爱县| 灌南县| 佳木斯市| 垦利县| 喀喇| 依安县|