List requirements with their build status.

This commit is contained in:
Robert de Bock 2020-11-06 08:35:09 +01:00
parent f25bb96a87
commit 959ee144ab

View file

@ -25,7 +25,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
value: 0 value: 0
``` ```
The machine may need to be prepared using `molecule/resources/prepare.yml`: The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
```yaml ```yaml
--- ---
- name: prepare - name: prepare
@ -49,22 +49,6 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
mode: "0664" mode: "0664"
``` ```
For verification `molecule/resources/verify.yml` runs after the role has been applied.
```yaml
---
- name: Verify
hosts: all
become: yes
gather_facts: no
tasks:
- name: check that bogus options are in
command: grep 'a=1' /etc/default/grub
- name: check that selected option is in
command: grep 'cgroup_enable=memory' /etc/default/grub
```
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles. Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
## [Role Variables](#role-variables) ## [Role Variables](#role-variables)
@ -89,13 +73,11 @@ grub_recordfail_timeout: "{{ grub_timeout }}"
- Access to a repository containing packages, likely on the internet. - Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.) - A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`: ## [Status of requirements](#status-of-requirements)
```yaml | Requirement | Travis | GitHub |
--- |-------------|--------|--------|
- robertdebock.bootstrap | [robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap) | [![Build Status Travis](https://travis-ci.com/robertdebock/ansible-role-bootstrap.svg?branch=master)](https://travis-ci.com/robertdebock/ansible-role-bootstrap) | [![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions) |
```
## [Context](#context) ## [Context](#context)