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

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.
主站蜘蛛池模板: 灵宝市| 麻江县| 峨山| 江北区| 体育| 石狮市| 柳江县| 射洪县| 盖州市| 砀山县| 济南市| 舒兰市| 静乐县| 托克托县| 新津县| 当雄县| 凌云县| 舟山市| 红桥区| 乃东县| 新宁县| 南京市| 阜新| 团风县| 中西区| 廉江市| 宁海县| 从江县| 花莲县| 镇坪县| 佳木斯市| 吴川市| 红原县| 青河县| 休宁县| 广元市| 疏勒县| 五寨县| 环江| 海兴县| 永泰县|