Pavel Loginov 2020-04-10 00:48:14 +02:00
parent 8d211f487d
commit 095ce9bf50
3 changed files with 6 additions and 6 deletions

View File

@ -86,14 +86,14 @@
src: selinux.j2
dest: /etc/selinux/config
ignore_errors: yes
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- name: Disble SELINUX in env
shell: setenforce 0 &> /dev/null
ignore_errors: yes
debugger: never
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- name: Enable and start service HAProxy

View File

@ -83,14 +83,14 @@
src: ../../haproxy/templates/selinux.j2
dest: /etc/selinux/config
ignore_errors: yes
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- name: Disble SELINUX in env
shell: setenforce 0 2> /dev/null
ignore_errors: yes
debugger: never
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- name: Enable and start service keepalived

View File

@ -88,14 +88,14 @@
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
dest: /etc/selinux/config
ignore_errors: yes
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- name: Disble SELINUX in env
shell: setenforce 0
ignore_errors: yes
debugger: never
when: '"Enabled" in sestatus.stdout'
when: '"Enforcing" in sestatus.stdout'
- hosts: "{{ variable_host }}"