Skip to content

Commit

Permalink
List requirements with their build status.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 3, 2020
1 parent 604b62f commit d96299a
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions README.md
Expand Up @@ -20,7 +20,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
- role: robertdebock.digitalocean-agent
```

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
---
- name: Prepare
Expand All @@ -33,28 +33,7 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
- role: robertdebock.ca_certificates
- role: robertdebock.apt_autostart
```

For verification `molecule/resources/verify.yml` runs after the role has been applied.
```yaml
---
- name: Verify
hosts: all
become: no
gather_facts: no

tasks:
- name: check /opt/digitalocean/bin/do-agent
stat:
path: /opt/digitalocean/bin/do-agent
register: check_do_agent

- name: check conditions
assert:
that:
- check_do_agent.stat.exists
- check_do_agent.stat.executable
```

Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
Expand All @@ -63,15 +42,13 @@ Also see a [full explanation and example](https://robertdebock.nl/how-to-use-the
- 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.)
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
---
- robertdebock.apt_autostart
- robertdebock.bootstrap
- robertdebock.ca_certificates

```
| Requirement | Travis | GitHub |
|-------------|--------|--------|
| [robertdebock.apt_autostart](https://galaxy.ansible.com/robertdebock/apt_autostart) | [![Build Status Travis](https://travis-ci.com/robertdebock/ansible-role-apt_autostart.svg?branch=master)](https://travis-ci.com/robertdebock/ansible-role-apt_autostart) | [![Build Status GitHub](https://github.com/robertdebock/ansible-role-apt_autostart/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-apt_autostart/actions) |
| [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) |
| [robertdebock.ca_certificates](https://galaxy.ansible.com/robertdebock/ca_certificates) | [![Build Status Travis](https://travis-ci.com/robertdebock/ansible-role-ca_certificates.svg?branch=master)](https://travis-ci.com/robertdebock/ansible-role-ca_certificates) | [![Build Status GitHub](https://github.com/robertdebock/ansible-role-ca_certificates/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-ca_certificates/actions) |
## [Context](#context)
Expand Down

0 comments on commit d96299a

Please sign in to comment.