mirror of https://github.com/Aidaho12/haproxy-wi
parent
8d211f487d
commit
095ce9bf50
|
@ -86,14 +86,14 @@
|
||||||
src: selinux.j2
|
src: selinux.j2
|
||||||
dest: /etc/selinux/config
|
dest: /etc/selinux/config
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- name: Disble SELINUX in env
|
- name: Disble SELINUX in env
|
||||||
shell: setenforce 0 &> /dev/null
|
shell: setenforce 0 &> /dev/null
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
debugger: never
|
debugger: never
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- name: Enable and start service HAProxy
|
- name: Enable and start service HAProxy
|
||||||
|
|
|
@ -83,14 +83,14 @@
|
||||||
src: ../../haproxy/templates/selinux.j2
|
src: ../../haproxy/templates/selinux.j2
|
||||||
dest: /etc/selinux/config
|
dest: /etc/selinux/config
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- name: Disble SELINUX in env
|
- name: Disble SELINUX in env
|
||||||
shell: setenforce 0 2> /dev/null
|
shell: setenforce 0 2> /dev/null
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
debugger: never
|
debugger: never
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- name: Enable and start service keepalived
|
- name: Enable and start service keepalived
|
||||||
|
|
|
@ -88,14 +88,14 @@
|
||||||
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
|
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
|
||||||
dest: /etc/selinux/config
|
dest: /etc/selinux/config
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- name: Disble SELINUX in env
|
- name: Disble SELINUX in env
|
||||||
shell: setenforce 0
|
shell: setenforce 0
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
debugger: never
|
debugger: never
|
||||||
when: '"Enabled" in sestatus.stdout'
|
when: '"Enforcing" in sestatus.stdout'
|
||||||
|
|
||||||
|
|
||||||
- hosts: "{{ variable_host }}"
|
- hosts: "{{ variable_host }}"
|
||||||
|
|
Loading…
Reference in New Issue