/ansible-playground

A DevContainer environment for playing around with ansible.

Primary LanguageShellMIT LicenseMIT

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.

Customize ansible-control container

This step will be executed automatically by starting the DevContainer

Starting the DevContainer will execute the script post-create-command.sh. Feel free to modify it to fit to your favorite tools and configs.

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.