Skip to content
Snippets Groups Projects

Added molecule tests for 'test' role

2 files
+ 149
124
Compare changes
  • Side-by-side
  • Inline

Files

+ 26
1
# test role
This is a ansible-role for testing your installed ansible.
## Requirements
To have ansible installed at your system.
## Role Variables
You should look around where the variables are setted. And figure it out from where the ouput comes
## Dependencies
This role have no dependency from any another role.
## Example Playbook
Here is an example for adding this role for your playbook for **restarting** the **c3infodesk-printer**. containers:
@@ -27,10 +30,32 @@ And call the playbook as:
ansible-playbook -i <INVENTORY> <PLAYBOOK_NAME>.yml
```
## Tests
Here are the tests made at **CI-CD** for this role.
The tests shuold be runned at the root directory from the repository.
### Syntax
```bash
ansible-playbook --syntax-check -i invenvories/hosts ci-cd/01_test.yml
```
### Lint
```bash
ansible-lint ci-cd/01_test.yml
```
### molecule
```bash
cd roles/test
molecule test
```
## License
MIT/BSD
## Author Information
![fejao logo](../../files/from_authors/fejao_logo_circle.png "fejao") [https://chaos.social/@fejao](https://chaos.social/@fejao)
Loading