Initial qwen3 run with opencode
This commit is contained in:
22
handlers.md
Normal file
22
handlers.md
Normal file
@@ -0,0 +1,22 @@
|
||||
## Handlers
|
||||
|
||||
Handlers are tasks that only run when notified by other tasks (typically after a change):
|
||||
|
||||
```yaml
|
||||
- name: Install nginx
|
||||
hosts: webservers
|
||||
tasks:
|
||||
- name: Install nginx
|
||||
apt:
|
||||
name: nginx
|
||||
state: present
|
||||
notify: Restart nginx
|
||||
|
||||
handlers:
|
||||
- name: Restart nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user