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

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.
主站蜘蛛池模板: 南木林县| 郎溪县| 宿州市| 柳江县| 永靖县| 高雄市| 阜新| 宁强县| 威信县| 秦安县| 六盘水市| 封开县| 绩溪县| 和平县| 建水县| 松阳县| 柞水县| 淮北市| 大悟县| 久治县| 惠安县| 花垣县| 疏勒县| 常山县| 阳春市| 郴州市| 维西| 彰武县| 武宣县| 德化县| 舟山市| 河西区| 东海县| 宝丰县| 驻马店市| 望城县| 临清市| 巩义市| 商都县| 彩票| 麻阳|