This repository holds the ReStructuredText (RST) source, and other files, for user documentation related to the Ansible package and Ansible Core.
Documentation for modules and plugins that are officially supported by the Ansible Core engineering team is available in the
ansible/ansible
repository.
Follow the documentation to set up your environment and then build Ansible community documentation locally
This project includes a nox
configuration to automate checks and other functions.
You should use nox
to run checks locally before you submit a pull request.
Install nox
using python3 -m pip install nox
or your distribution's package manager.
Run nox --list
from the repository root to view available sessions.
Run nox
with no arguments to execute the default sessions.
This repository uses codespell
to check for common spelling mistakes in the documentation source.
Run nox -s spelling
to check spelling.
Run nox -s spelling -- -w
to correct spelling errors.
When codespell
suggests more than one word as a correction, run nox -s spelling -- -w -i 3
to select an option.
To update dependencies, you can use nox -e pip-compile
. Since this requires Python 3.10, this might not work in your environment if you do not have Python 3.10 installed. In that case, you can use root-less podman with a Python 3.10 image:
podman run --rm --tty --volume "$(pwd):/mnt:z" --workdir /mnt python:3.10 bash -c 'pip install nox ; nox -e pip-compile'