Files
meshbook/examples/variable_usage_example.yaml
2025-01-09 10:26:06 +01:00

18 lines
388 B
YAML

---
name: Ping Multiple Points
group: "Kubernetes"
variables:
- name: host1
value: "1.1.1.1"
- name: host2
value: "9.9.9.9"
- name: command1
value: "ping"
- name: cmd_arguments
value: "-c 4"
tasks:
- name: Ping host1
command: "{{ command1 }} {{ host1 }} {{ cmd_arguments }}"
- name: Ping host2
command: "{{ command1 }} {{ host2 }} {{ cmd_arguments }}"