Initial qwen3 run with opencode
This commit is contained in:
18
conditionals.md
Normal file
18
conditionals.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## Conditionals
|
||||
|
||||
Run tasks based on conditions:
|
||||
|
||||
```yaml
|
||||
tasks:
|
||||
- name: Install on Debian
|
||||
apt:
|
||||
name: apache2
|
||||
state: present
|
||||
when: ansible_facts.os_family == "Debian"
|
||||
|
||||
- name: Install on RedHat
|
||||
yum:
|
||||
name: httpd
|
||||
state: present
|
||||
when: ansible_facts.os_family == "RedHat"
|
||||
```
|
||||
Reference in New Issue
Block a user