Welcome to @gikeymarcia’s web home

In my continual quest to do something interesting, I am learning Ansible to automate deployment of servers and applications. This site is one of two web servers being automatically populated with whatever HTML I produce on my “control host” machine.

Amazingly, the Ansible playbook generating this site can deploy on Ubuntu and Fedora without problem. Once I have my Ansible ssh key installed on each machine it is as simple as running one command to get the following installed.

The only hiccup I’m facing is with the Fedora server. By default Fedora does not automatically enable the service for Apache, httpd.service, and also requires a firewall rule to be added.

sudo su
systemctl start httpd.service
systemctl enable httpd.service
firewall-cmd --add-port=80/tcp

On Ubuntu for safety reasons they advise you turn on your firewall and so my ansible scripts also need to ensure the Apache Full is allowed through. Wondering which ufw rule to pick for Apache? Options explained here.

sudo su
ufw app list
ufw allow OpenSSH
ufw allow Apache # port 80
ufw allow Apache Secure # port 443
ufw allow Apache Full # both ports 80 and 443
ufw enable

date modified: 2021-01-13