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

Installing Python bindings for SELinux

Since Ansible is written in Python, and mainly uses the Python bindings to operate on the operating system, we will need to install the Python bindings for SELinux:

- name: Ensure libselinux-python is present 
  yum: 
    name: libselinux-python 
    state: present 
  become: True 
- name: Ensure libsemanage-python is present 
  yum: 
    name: libsemanage-python 
    state: present 
  become: True 
This could be written in a shorter way, using a cycle, but we'll see how to do this in the next chapter.
主站蜘蛛池模板: 榆社县| 玛多县| 乌拉特中旗| 石阡县| 张家港市| 青阳县| 德格县| 新竹县| 富平县| 彰化市| 陇西县| 乌鲁木齐县| 鹿泉市| 科技| 壶关县| 扎鲁特旗| 桦南县| 星座| 读书| 嵩明县| 磐石市| 哈密市| 贺州市| 盐山县| 隆尧县| 鹤山市| 北票市| 巫溪县| 肇州县| 岐山县| 安阳县| 纳雍县| 敖汉旗| 靖远县| 郯城县| 济阳县| 邢台县| 周宁县| 碌曲县| 通道| 木兰县|