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.
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
`