Fix the nginx seboolean.

This commit is contained in:
Andrea Dell'Amico 2020-07-31 12:45:05 +02:00
parent 2de6e30fb8
commit a9ad526ea8
2 changed files with 24 additions and 2 deletions

View File

@ -22,4 +22,15 @@
- name: Start and enable the scm agent
service: name=cloudera-scm-agent state=started enabled=yes
- name: "Check if apache is installed"
package_facts:
manager: "auto"
when: cdh_manager_install
- name: Stop and disable the apache service on CDM
service: name=apache2 state=stopped enabled=no
when:
- cdh_manager_install
- "'apache2' in ansible_facts.packages"
tags: [ 'cdh', 'hadoop' ]

View File

@ -1,5 +1,5 @@
---
- name: CentOS packages and firewall rules
- name: EL packages and firewall rules
block:
- name: Firewalld rules for CDH
firewalld: port={{ item.port }}/{{ item.protocol }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
@ -18,5 +18,16 @@
- name: Start and enable the scm agent
service: name=cloudera-scm-agent state=started enabled=yes
- name: Get the installed packages list
package_facts:
manager: "auto"
when: cdh_manager_install
- name: Stop and disable the apache service on CDM
service: name=httpd state=stopped enabled=no
when:
- cdh_manager_install
- "'httpd' in ansible_facts.packages"
tags: [ 'cdh', 'hadoop' ]