Ansible
Playbooks
These playbooks are mostly used to test roles, or prove an integration works.
Collections
| Collection | Function |
|---|---|
| roles | All roles from robertdebock.nl |
Roles
A monthly test to see if the role still works on the current distributions. Some roles contain a version that requires frequent changes and tests. To better understand what distributions and their versions are tested, have a look at the relations page.
Unit tests are used to verify the quality of the roles, read more about testing
Dependencies
Most roles have a “soft dependency”: roles that should run before them, described in molecule/default/prepare.yml and requirements.yml. You can choose to use those roles if you like them. All roles ordered by these soft dependencies are listed on the dependencies page, the longest chain has 7 levels.
The dependencies are soft for these reasons:
- Better re-usability.
- Easier to fork.
- Let system developer assume a start-state of a machine.
Because these dependencies are loose, you have to include them in your playbook yourself:
- name: make the best machine ever
hosts: all
become: true
roles:
- role: robertdebock.bootstrap
- role: robertdebock.java
- role: robertdebock.tomcat
A hard dependency is only used if it is really required, mainly for a shared handler or variables set in the parent role, used in the child role. More details on how to use these roles. These hard dependencies are described in meta/main.yml under dependencies.
| Role | Depends on | Reason |
|---|---|---|
| mediawiki | httpd | handler |
| php | httpd | handler |
| phpmyadmin | httpd | handler |
| revealmd | npm | required prerequisites |
A page describing how I release considering these dependencies.
Issues & pull requests
See the overview of issues and pull requests.
Distributions
The goal is to let all Ansible roles work on as many distributions as possible, but this is sometimes not possible. For each distribution, the current and previous release is tested. A role may work on different distributions, like Red Hat Enterprise Linux (RHEL), but it’s not tested against it. A role lists the distributions it supports in meta/main.yml, these are the distributions that can be tested:
| Distribution | Version(s) |
|---|---|
| Alpine | latest |
| Amazon Linux | latest (a few roles) |
| Debian | 13 (trixie) & 12 (bookworm) |
| Enterprise Linux | 9 |
| Fedora | 45 (latest) & 44 |
| Ubuntu | 24.04 (noble) & 22.04 (jammy) |
Not every role supports every distribution, for example when a vendor does not publish packages. See distribution relations for the container images and testing for how roles are tested.
Ansible versions
The roles are tested with one version of Ansible: the latest release of ansible-core (currently 2.22, part of Ansible 15). The minimum version of ansible-core required is 2.20, which is set in meta/main.yml of each role. ansible-core 2.22 needs Python 3.13 on the machine that runs Ansible, the managed machines need a Python version that your ansible-core release supports.