Update Ansible Roles And PlayBook Doc

This commit is contained in:
2024-09-09 21:30:22 +03:30
parent 73424c87a2
commit a096f52e8a
2 changed files with 50 additions and 7 deletions

View File

@@ -55,6 +55,12 @@ This command runs the `deploy_nginx.yaml` playbook on the hosts defined in `inve
- **Handlers**: Special tasks triggered by other tasks using the `notify` directive.
- **Variables**: Dynamic values that can be reused across tasks and playbooks for flexibility and maintainability.
give var in command line
```bash
ansible-playbook -i server.ini main.yaml -e "env=2"
```
---
## Example Playbooks