blob: 83568303d6a4d46bda9c408ae5d78147ed11da66 [file] [log] [blame]
---
# tasks file for opdk-setup-selinux-disable
#- name: Permanently disable SELINUX
# lineinfile:
# dest: /etc/selinux/config
# regexp: "^(SELINUX=)"
# line: '\1disabled'
# backrefs: yes
# backup: yes
# when: "{{ ansible_selinux.status | lower != 'disabled' }}"
- name: Permanently disable SELINUX
selinux: state=disabled
- name: Refresh setup facts
setup:
- name: Restart node
debug:
msg: 'SELinux MUST be disabled, selinux has been updated, restarting node now...'
when: "{{ ansible_selinux.status | lower != 'disabled' }}"
- name: Restarting node now
ignore_errors: yes
become: yes
shell: 'reboot now'
when: "{{ ansible_selinux.status | lower != 'disabled' }}"
async: 0
poll: 0
- name: Waiting for server to complete reboot cycle
local_action: wait_for port='{{ ansible_port }}' state=started