---
- name: Install SELinux support
  yum:
    name: '{{ item }}'
    state: present
  with_items:
    - libselinux-python
    - selinux-policy

- name: Disable SELinux
  selinux:
    state: disabled

---
- name: Install SELinux support
  yum:
    name:
      - libselinux-python
      - selinux-policy
    state: present

- name: Disable SELinux
  selinux:
    state: disabled

Change yum module syntax from loop to list
Change yum module syntax from loop to list
