diff --git a/changelogs/fragments/fix_doc_inventories_kind.yml b/changelogs/fragments/fix_doc_inventories_kind.yml new file mode 100644 index 000000000..6fa093572 --- /dev/null +++ b/changelogs/fragments/fix_doc_inventories_kind.yml @@ -0,0 +1,4 @@ +--- +bugfixes: + - "Add `kind: constructed` in controller_inventories role document" +... diff --git a/roles/controller_inventories/README.md b/roles/controller_inventories/README.md index d9cf597a0..ad964b07a 100644 --- a/roles/controller_inventories/README.md +++ b/roles/controller_inventories/README.md @@ -101,7 +101,7 @@ The role will strip the double space between the curly bracket in order to provi |`instance_groups`|""|no|list|List of Instance Groups for this Inventory to run on.| |`input_inventories`|""|no|list|List of Inventories to use as input for Constructed Inventory.| |`variables`|`{}`|no|dict|Variables for the inventory.| -|`kind`|""|no|str|The kind of inventory. Currently choices are '' and 'smart'| +|`kind`|""|no|str|The kind of inventory. Currently choices are '', 'smart' and 'constructed'| |`host_filter`|""|no|str|The host filter field, useful only when 'kind=smart'| |`prevent_instance_group_fallback`|`false`|no|bool|Prevent falling back to instance groups set on the organization| |`state`|`present`|no|str|Desired state of the resource.| diff --git a/roles/controller_inventories/meta/argument_specs.yml b/roles/controller_inventories/meta/argument_specs.yml index 024fc59d3..5c8885712 100644 --- a/roles/controller_inventories/meta/argument_specs.yml +++ b/roles/controller_inventories/meta/argument_specs.yml @@ -40,7 +40,7 @@ argument_specs: # choices: # - "" # - smart -# description: The kind of inventory. Currently choices are '' and 'smart' +# description: The kind of inventory. Currently choices are '', 'smart' and 'constructed' # host_filter: # default: false # required: false diff --git a/roles/controller_inventories/tests/configs/inventories.yml b/roles/controller_inventories/tests/configs/inventories.yml index e8263930a..8ab6fc66b 100644 --- a/roles/controller_inventories/tests/configs/inventories.yml +++ b/roles/controller_inventories/tests/configs/inventories.yml @@ -8,4 +8,9 @@ controller_inventories: kind: smart host_filter: name__icontains=test variables: '{"key1":"val1", "key2":"val2"}' + - name: test3 + organization: Default + kind: constructed + input_inventories: + - test1 ... diff --git a/roles/controller_inventories/tests/test.yml b/roles/controller_inventories/tests/test.yml index 1d6c87d7c..02210914e 100644 --- a/roles/controller_inventories/tests/test.yml +++ b/roles/controller_inventories/tests/test.yml @@ -1,5 +1,5 @@ --- -- name: Add Inventies on Controller +- name: Add Inventories on Controller hosts: localhost connection: local gather_facts: false