fix lint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2020-06-04 20:30:30 +02:00
parent 3d3dee4081
commit f08cc60731

View file

@ -3,7 +3,10 @@
include_vars: "{{ ansible_os_family }}.yml"
- name: Install packages for apache httpd
package: name="{{ httpd_packages }}" state=latest update_cache=yes
package:
name: "{{ httpd_packages }}"
state: present
update_cache: yes
- name: Ensuring /etc/httpd/site-enabled Folder Exists
file:
@ -19,11 +22,14 @@
vars:
certbot_certname: "{{ ansible_hostname }}{{ domain }}"
when:
- httpd_cerbot == true
- httpd_cerbot|bool
notify: Restart {{ httpd_service }}
- name: Check if httpd is started
service: name=httpd state=started enabled=yes
service:
name: httpd
state: started
enabled: yes
- name: Open Firewalld
firewalld:
@ -33,6 +39,8 @@
immediate: true
- name: Enable apache httpd services
service: name="{{ httpd_service }}" enabled=yes
service:
name: "{{ httpd_service }}"
enabled: yes