mirror of https://github.com/Aidaho12/haproxy-wi
parent
8f155a8a60
commit
744dba1be9
|
@ -79,11 +79,13 @@
|
|||
template:
|
||||
src: selinux.j2
|
||||
dest: /etc/selinux/config
|
||||
|
||||
ignore_errors: yes
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Disble SELINUX in env
|
||||
shell: setenforce 0
|
||||
|
||||
ignore_errors: yes
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Enable and start service HAProxy
|
||||
systemd:
|
||||
|
|
|
@ -59,11 +59,11 @@
|
|||
template:
|
||||
src: ../../haproxy/templates/selinux.j2
|
||||
dest: /etc/selinux/config
|
||||
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Disble SELINUX in env
|
||||
shell: setenforce 0
|
||||
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Enable and start service keepalived
|
||||
service:
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
dest: "{{CONFIG_PATH}}"
|
||||
mode: 0644
|
||||
when: "'nginx' not in ansible_facts.packages"
|
||||
ignore_errors: yes
|
||||
|
||||
- htpasswd:
|
||||
path: /etc/nginx/status_page_passwdfile
|
||||
|
@ -51,10 +52,11 @@
|
|||
template:
|
||||
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
|
||||
dest: /etc/selinux/config
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Disble SELINUX in env
|
||||
shell: setenforce 0
|
||||
|
||||
ignore_errors: yes
|
||||
|
||||
- hosts: "{{ variable_host }}"
|
||||
become: yes
|
||||
|
|
Loading…
Reference in New Issue