Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
c3infodesk-deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fejao
c3infodesk-deployment
Merge requests
!10
Added molecule tests for 'test' role
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Added molecule tests for 'test' role
Setting_molecule_01
into
main
Overview
0
Commits
16
Pipelines
1
Changes
2
Merged
Added molecule tests for 'test' role
fejao
requested to merge
Setting_molecule_01
into
main
5 months ago
Overview
0
Commits
16
Pipelines
1
Changes
2
0
0
Merge request reports
Viewing commit
80a14810
Prev
Next
Show latest version
2 files
+
149
−
124
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
80a14810
Updated ci-cd
· 80a14810
fejao
authored
5 months ago
roles/test/README.md
+
26
−
1
View file @ 80a14810
Edit in single-file editor
Open in Web IDE
Show full file
# 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

[
https://chaos.social/@fejao
]
(https://chaos.social/@fejao)
Loading