- Learning Ansible 2.7(Third Edition)
- Fabio Alessandro Locati
- 79字
- 2021-06-24 15:08:43
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.