Created
May 15, 2022 06:02
-
-
Save isitavi/3e97b3946923a019e14bd97d0e6e3558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: This sets up an httpd webserver | |
hosts: all | |
tasks: | |
- name: Install apache packages | |
yum: | |
name: httpd | |
state: present | |
- name: ensure httpd is running | |
service: | |
name: httpd | |
state: started | |
- name: Open port 80 for http access | |
firewalld: | |
service: http | |
permanent: true | |
state: enabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment