Skip to content

Commit fe42ccf

Browse files
committed
fail caas and stackhpc if any inventory can't be read
1 parent 5c49061 commit fe42ccf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

environments/.caas/ansible.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ filter_plugins = ../../ansible/filter_plugins
1313
[ssh_connection]
1414
ssh_args = -o ControlMaster=auto ControlPath=~/.ssh/%r@%h-%p -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
1515
pipelining = True
16+
17+
[inventory]
18+
# Fail when any inventory source cannot be parsed.
19+
any_unparsed_is_failed = True

environments/.stackhpc/ansible.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ filter_plugins = ../../ansible/filter_plugins
1414
[ssh_connection]
1515
ssh_args = -o ServerAliveInterval=10 -o ControlMaster=auto -o ControlPath=~/.ssh/%r@%h-%p -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
1616
pipelining = True
17+
18+
[inventory]
19+
# Fail when any inventory source cannot be parsed.
20+
any_unparsed_is_failed = True

0 commit comments

Comments
 (0)