IaC

Apache installed with Ansible - quick notes

Install Apache 2 web server automatically. Serves a web site on the front page of http://localhost. Pages can be edited as a normal user - without root or sudo.

Simplified Ansible role. An example of package-file-server pattern. Just notes, no tutorial.

Passwordless Sudo with Ansible

Sudo without password, automatically. Short example role for ansible.

The role

  • creates a new user in "sudoless" group
  • adds a sudoers.d/ NOPASSWD rule for the group

Hello Ansible

Write infrastructure-as-code, control multiple machines easily.

In this Ansible tutorial, we create a single file in /tmp/.