Resources attached to the Road To DevOps tutorial https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
573 B

2 years ago
- name: install Apache/Httpd
yum:
name:
- httpd
state: present
update_cache: yes
when:
- ansible_os_family == "RedHat"
- name: install Apache/Httpd
apt:
name:
- httpd
state: present
update_cache: yes
when:
- ansible_os_family == "Debian"
- name: start Httpd; enabled Httpd"
service:
name: httpd
state: started
enabled: yes
- name: allow Httpd throught firewalld
firewalld:
service: http
permanent: yes
state: enabled
immediate: yes