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