Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.72 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.72 KB

ansible-playground

pre-commit pre-commit ansible-tests

Installing

Install requirements

  1. vscode
  2. docker compose
  3. vscode plugins
    1. Dev Containers

Clone this repository

git clone https://github.com/Xenion1987/ansible-playground.git

Start the playground

Start the ansible control container

Open the repository in vscode. Vscode should give you a hint, that it has detected a DevContainer config and asks you to reopen it in DevContainer. Accept to initialize and start the environment.

By default, this playground builds and starts 2 out of 4 clients (debian-12 and almalinux-8). If you want to build and start all 4 clients, you have to uncomment the ubuntu and suse client in both docker-compose.yml and inventory.yml files.

Contributing

This repository is pre-commit enabled. Before commiting, all changes will be checked by pre-commit-hooks defined in .pre-commit-config.yaml. pre-commit will be installed inside the devcontainer.

Before doing a git commit, you should run pre-commit run --all-files to run checks and fix mentioned warnings/errors.