Fix the nginx seboolean.
This commit is contained in:
parent
2de6e30fb8
commit
a9ad526ea8
|
@ -22,4 +22,15 @@
|
||||||
- name: Start and enable the scm agent
|
- name: Start and enable the scm agent
|
||||||
service: name=cloudera-scm-agent state=started enabled=yes
|
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' ]
|
tags: [ 'cdh', 'hadoop' ]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: CentOS packages and firewall rules
|
- name: EL packages and firewall rules
|
||||||
block:
|
block:
|
||||||
- name: Firewalld rules for CDH
|
- name: Firewalld rules for CDH
|
||||||
firewalld: port={{ item.port }}/{{ item.protocol }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
|
firewalld: port={{ item.port }}/{{ item.protocol }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
|
||||||
|
@ -19,4 +19,15 @@
|
||||||
- name: Start and enable the scm agent
|
- name: Start and enable the scm agent
|
||||||
service: name=cloudera-scm-agent state=started enabled=yes
|
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' ]
|
tags: [ 'cdh', 'hadoop' ]
|
||||||
|
|
Loading…
Reference in New Issue