A simple httpd server.
- Python 2.7
- Ubuntu 20.04
- Ansible >= 2.9
We have only one variable in the function, and it is set to install or remove HTTPD/Apache2.
httpd_state: present # or absent
N/A
Below are some installation and removal examples:
An example of installation would be the one below, using the httpd_state variable. If it is not informed, the default value is present.
- hosts: servers
roles:
- role: stephan_lopes.simple-httpd
vars:
- httpd_state: present
To remove, set the absent value in the httpd_state variable.
- hosts: servers
roles:
- role: stephan_lopes.simple-httpd
vars:
- httpd_state: absent