https://github.com/kingrayhan/ansible
https://github.com/kingrayhan/ansible
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kingrayhan/ansible
- Owner: kingRayhan
- Created: 2024-12-11T02:37:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-12T05:16:42.000Z (over 1 year ago)
- Last Synced: 2025-05-29T15:38:33.958Z (about 1 year ago)
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Ansible Playbooks
### Ping all hosts
```bash
ansible -i inventory.yml all -m ping
```
# Caddy
```
# For full installation with user setup
ansible-playbook -i inventory.yml caddy.yml --tags "fresh_install"
# For installation and configuration
ansible-playbook -i inventory.yml caddy.yml --tags "install"
# To just update configuration
ansible-playbook -i inventory.yml caddy.yml --tags "config"
# To stop the service
ansible-playbook -i inventory.yml caddy.yml --tags "service_stop"
# For complete uninstallation
ansible-playbook -i inventory.yml caddy.yml --tags "uninstall"
```
# Docker
```
# For basic installation
ansible-playbook -i inventory.yml playbook.yml --tags "install"
# For full installation with user setup
ansible-playbook -i inventory.yml playbook.yml --tags "fresh_install"
# Just to stop services
ansible-playbook -i inventory.yml playbook.yml --tags "service_stop"
# For complete uninstallation (includes stopping services)
ansible-playbook -i inventory.yml playbook.yml --tags "uninstall"
```