https://github.com/a-mhamdi/ansible
Ansible Playbook Recipes
https://github.com/a-mhamdi/ansible
ansible debian playbook
Last synced: 2 months ago
JSON representation
Ansible Playbook Recipes
- Host: GitHub
- URL: https://github.com/a-mhamdi/ansible
- Owner: a-mhamdi
- License: mit
- Created: 2025-05-09T08:38:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-19T17:49:27.000Z (6 months ago)
- Last Synced: 2025-12-22T07:36:50.017Z (6 months ago)
- Topics: ansible, debian, playbook
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README #
## Overview
**Ansible** is an open-source automation tool that simplifies configuration management, application deployment, and task automation.
## Installation
### Install Ansible on Ubuntu/Debian
```zsh
sudo apt update
sudo apt install ansible
```
### Check Ansible Version
```zsh
ansible --version
```
### Run Ad-hoc Commands
```zsh
ansible [host-pattern] -m [module] -a "[module options]"
```
```zsh
# Run a simple command on all hosts
ansible -i hosts.ini all -m command -a "uptime"
```
### Update Hosts
```zsh
ansible-playbook -i hosts.ini upd_usdge.yml -K
```
### Reboot Hosts
```zsh
ansible-playbook -i hosts.ini reboot_shutdown.yml --tags "reboot" -K
```