Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bec-galaxy/ansible-workspace
Predefined tasks for Visual Studio Code.
https://github.com/bec-galaxy/ansible-workspace
ansible ansible-vault molecule vscode vscode-workspace
Last synced: 4 days ago
JSON representation
Predefined tasks for Visual Studio Code.
- Host: GitHub
- URL: https://github.com/bec-galaxy/ansible-workspace
- Owner: bec-galaxy
- Archived: true
- Created: 2023-03-26T08:02:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T21:08:20.000Z (about 1 year ago)
- Last Synced: 2024-09-26T08:41:10.275Z (4 months ago)
- Topics: ansible, ansible-vault, molecule, vscode, vscode-workspace
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Workspace for Ansible
Predefined tasks for Visual Studio code. These can be used to test Ansible roles and collections.
After opening the `bec-galaxy.code-workspace` file, the following shortcuts are available under the Tasks `Terminal->Run Taskβ¦` menu:
| Befehl | Beschreibung |
| -------------------- | --------------------------------------------- |
| 𧬠molecule test | Performs a complete test. |
| 𧬠molecule converge | Performs a quick test without destroy. |
| 𧬠molecule verify | Performs a quick test without destroy. |
| 𧬠molecule login | Opens a shell on the quick test container. |
| 𧬠molecule destroy | Use the provisioner to destroy the instances. |
| π ansible-vault edit | Edits the current selected vault file. |### Preparation
Install Ansible and the Molecule testing Framework with the required dependencies using this command:
```
pip install --user ansible ansible-lint molecule molecule-plugins docker
```Upgrade existing packages with this command:
```
pip install --upgrade --user ansible ansible-lint molecule molecule-plugins docker
```> Install the package only in the user context, depending on the environment installing python packages as root can cause problems. If any Ansible packages were previously installed as root, it is recommended to uninstall these packages first.
## Molecule
To test a ansible-collection e.g. after changes, Molecule tasks are included.
Molecule is executed in the currently selected project.