Update docs/configuring-playbook.md: update the instruction to use git

This is based on 5facc06a3c/docs/configuring-playbook.md

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
Suguru Hirahara 2025-03-05 12:15:48 +09:00
parent 374d19c4d4
commit 3f0082e56b
No known key found for this signature in database
GPG Key ID: E4F9743DAB4B7B75

View File

@ -30,7 +30,7 @@ If you've configured your DNS records and retrieved the playbook's source code t
5. edit the inventory hosts file (`inventory/hosts`) to your liking
6. (optional, advanced) you may wish to keep your `inventory` directory under version control with [git](https://git-scm.com/) or any other version-control system.
6. (optional, advanced) you may wish to keep your `inventory` directory under version control with [git](https://git-scm.com/) or any other version-control system. The `inventory` directory path is ignored via `.gitignore`, so it won't be part of the playbook repository. You can safely create a new git repository inside that directory with `git init`, etc.
7. (optional, advanced) to run Ansible against multiple servers with different `sudo` credentials, you can copy the sample inventory hosts yaml file for each of your hosts: (`cp examples/host.yml inventory/my_host1.yml` …) and use the [`ansible-all-hosts.sh`](../bin/ansible-all-hosts.sh) script [in the installation step](installing.md).