ansible-playbooks/README.md

28 lines
431 B
Markdown

# ansible-playbooks
Ansible playbooks to manage the IT infrastructure.
## Install Ansible
Using the `dnf` package manager:
```sh
sudo dnf install ansible
```
## Configure hosts
Make sure to define the hosts in `/etc/ansible/hosts`:
```toml
[serversgroup]
<hostname or IP address> ansible_user=ansible
```
## Run playbooks
The `ssh` credentials can be specified interactively:
```sh
ansible-playbook <playbook>.yml -k
```