Member-only story

Deploy a web server apache httpd on Debian-like systems — Ansible modules apt, copy, service and ufw

How to automate the deployment of a web server apache httpd on Debian-like systems with custom web page taking care of downloading, installing, and enabling the service instantly and on boot and open the relevant firewall ports with Ansible modules yum, copy, service ufw. Debian, Ubuntu all the similar distributions.

Luca Berton
6 min readFeb 14, 2022

How to deploy a webserver apache httpd on Debian-like systems with Ansible?

I’m going to show you a live demo with some simple Ansible code.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

Deploy a web server apache httpd on Debian-like systems

  • install packages => `ansible.builtin.apt`
  • custom index.html => `ansible.builtin.copy`
  • start service => `ansible.builtin.service`
  • open firewall => `community.general.ufw`

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet