Skip to content

Instantly share code, notes, and snippets.

@isitavi
Created May 15, 2022 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isitavi/3e97b3946923a019e14bd97d0e6e3558 to your computer and use it in GitHub Desktop.
Save isitavi/3e97b3946923a019e14bd97d0e6e3558 to your computer and use it in GitHub Desktop.
---
- 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