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