diff --git a/app/scripts/ansible/roles/haproxy/tasks/main.yml b/app/scripts/ansible/roles/haproxy/tasks/main.yml index 74649ce4..932cae06 100644 --- a/app/scripts/ansible/roles/haproxy/tasks/main.yml +++ b/app/scripts/ansible/roles/haproxy/tasks/main.yml @@ -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: diff --git a/app/scripts/ansible/roles/keepalived/tasks/install.yml b/app/scripts/ansible/roles/keepalived/tasks/install.yml index 4d4736f0..d261a442 100644 --- a/app/scripts/ansible/roles/keepalived/tasks/install.yml +++ b/app/scripts/ansible/roles/keepalived/tasks/install.yml @@ -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: diff --git a/app/scripts/ansible/roles/nginx.yml b/app/scripts/ansible/roles/nginx.yml index 5550160d..c59dfc95 100644 --- a/app/scripts/ansible/roles/nginx.yml +++ b/app/scripts/ansible/roles/nginx.yml @@ -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