ansible-playbooks/README.md

29 lines
431 B
Markdown
Raw Normal View History

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