Update Ansible Roles And PlayBook Doc#2
This commit is contained in:
@@ -55,12 +55,6 @@ 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.
|
- **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.
|
- **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
|
## Example Playbooks
|
||||||
|
|||||||
Reference in New Issue
Block a user