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

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.

主站蜘蛛池模板: 恩平市| 岐山县| 林西县| 宜都市| 当雄县| 塔河县| 双流县| 曲阳县| 金寨县| 平顶山市| 浏阳市| 西乡县| 承德市| 商都县| 海伦市| 徐闻县| 新田县| 长岛县| 江西省| 贵溪市| 东宁县| 阿拉善左旗| 郯城县| 德兴市| 崇明县| 兴山县| 普兰店市| 双鸭山市| 三江| 筠连县| 武夷山市| 万全县| 正安县| 涡阳县| 福泉市| 临江市| 梧州市| 乡宁县| 双桥区| 锦州市| 东城区|