2021-11-12 12:52:51 +01:00
|
|
|
# Server-Playbook
|
2021-11-12 13:00:36 +01:00
|
|
|
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
|
2020-12-24 14:27:31 +01:00
|
|
|
## Description
|
|
|
|
Ansible script to manage servers.
|
|
|
|
|
2021-11-12 13:00:36 +01:00
|
|
|
## Roles
|
2020-12-31 13:21:56 +01:00
|
|
|
The system use the following role namings:
|
|
|
|
|
|
|
|
| role prefix | meaning|
|
|
|
|
|---|---|
|
2021-01-23 08:26:39 +01:00
|
|
|
|system-|general system roles which apply basic configurations|
|
2020-12-31 13:21:56 +01:00
|
|
|
|native-|applications which run native on the system|
|
|
|
|
|docker-|applications which run on docker containers on the system|
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
## Update
|
2020-12-25 11:55:46 +01:00
|
|
|
Follow the best [practices for inventories](https://docs.ansible.com/ansible/2.3/playbooks_best_practices.html) and execute ansible via:
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
``bash
|
2020-12-25 11:55:46 +01:00
|
|
|
ansible-playbook -i ~/your-inventories/inventorie/hosts site.yml
|
2020-12-24 14:27:31 +01:00
|
|
|
``
|
|
|
|
|
|
|
|
## Debug
|
|
|
|
### Cleanup docker
|
|
|
|
``bash
|
|
|
|
docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker volume rm $(docker volume ls -q);
|
|
|
|
``
|
|
|
|
|
2021-11-12 13:00:36 +01:00
|
|
|
## See
|
2021-01-05 18:17:04 +01:00
|
|
|
- https://wiki.archlinux.org/index.php/Ansible
|