上QQ阅读APP看书,第一时间看更新
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.