Skip to content

TimGrt/ansible-windows-workshop

Repository files navigation

Ansible Workshop Exercises

This repository contains all exercise descriptions for the Ansible Windows Workshop.
The exercises are build with MkDocs and published to Github pages.
A Dockerfile is included to build a container image which publishes the exercises as a Webserver.

Linting

Development

Use the provided Makefile to setup the development environment!

The all target creates a Python VE with all requirements and installs the provided pre-commit hooks:

make all

Running without specifying a target displays a help message.

Use the clean target to remove the development environment again after you are finished.

Manual setup

Create a Python virtual environment:

python3 -m venv ve-mkdocs-dev

Activate VE:

source ve-mkdocs-dev/bin/activate

Install requirements from project directory:

pip3 install -r requirements.txt

Install pre-commit package and hooks:

pip3 install -r requirements.txt
pre-commit install

You can run all hooks at any time:

pre-commit run -a

Get IP address:

hostname -I

Start MkDocs built-in dev-server for live-preview:

mkdocs serve -a 172.26.220.226:8080

Pull Request Guidelines

Before opening a pull request make sure you followed the next couple of steps.

  1. Use the provided Makefile to create a development environment!
  2. Always preview the changes you made thoroughly, only commit your changes if everything looks as intended!
  3. Use the provided pre-commit configuration, it will lint your Markdown files and also check for spelling errors!

Build and publish guide manually

Use the provided Containerfile if you want to publish the Workshop exercises guide yourself.

Build the image:

podman build -t ansible-windows-workshop .

Run a container from the previously build image, the webserver is available at Port 8080:

podman run -d -p 8080:8080/tcp --name workshop ansible-windows-workshop

About

Exercises for Workshop Ansible & Windows automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •