Skip to content

Commit f8ce8a6

Browse files
authored
Merge pull request #1009 from stackhpc/fail-unparsed-inventory
Fail on any unparsed Ansible inventory
2 parents d68a23f + 9beb7fb commit f8ce8a6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

etc/kayobe/ansible.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ callbacks_enabled = ansible.posix.profile_tasks
1111
# Silence warning about invalid characters found in group names
1212
force_valid_group_names = ignore
1313

14+
[inventory]
15+
# Fail when any inventory source cannot be parsed.
16+
any_unparsed_is_failed = True
17+
1418
[ssh_connection]
1519
pipelining = True
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
upgrade:
3+
- |
4+
Updates the Ansible configuration to `fail on any unparsed inventory source
5+
<https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inventory-any-unparsed-is-failed>`__.
6+
If you are using a separate Ansible configuration for Kolla Ansible, you
7+
may wish to add this setting in ``etc/kayobe/kolla/ansible.cfg``.

0 commit comments

Comments
 (0)