Skip to content

Commit f172677

Browse files
committed
Improve inventory function example
1 parent 8b32082 commit f172677

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

inventory-functions/inventory.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ def make_docker_inventory():
33
# and the values are either a list of hosts or a tuple of (hosts, data).
44
return {
55
"docker_hosts": [
6-
"@docker/ubuntu:22.04",
6+
"@docker/debian:9",
7+
"@docker/debian:8",
78
],
89
"docker_hosts_with_data": (
9-
["@docker/ubuntu:24.04"],
10-
{"key": "value"},
10+
[
11+
"@docker/ubuntu:24.04",
12+
"@docker/ubuntu:22.04",
13+
],
14+
{"_sudo": True},
1115
),
1216
}

0 commit comments

Comments
 (0)