-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
37 lines (37 loc) · 1.52 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
## { "ansible_operator_meta": {
## "name": <object_name>,
## "namespace": <object_namespace>,
## },
## <cr_spec_fields_as_snake_case>,
## <watch vars>,
## <finalizer vars>,
## _<group_as_snake>_<kind>: {
## <cr_object> as is
## }
## _<group_as_snake>_<kind>_spec: {
## <cr_object.spec> as is
## }
## }
# yamllint disable-line rule:line-length
inventorysource_kind: "InventorySource"
# yamllint disable-line rule:line-length
inventorysource_api_group: "tower.ansible.com"
# yamllint disable-line rule:line-length
inventorysource_api_version: "v1alpha1"
# yamllint disable-line rule:line-length
inventorysource_finalize_state: "{{ finalize_state | default('present', true) }}"
# yamllint disable-line rule:line-length
inventorysource_metadata_name: "{{ ansible_operator_meta.name }}"
# yamllint disable-line rule:line-length
inventorysource_metadata_namespace: "{{ ansible_operator_meta.namespace }}"
# yamllint disable-line rule:line-length
inventorysource_module_name: "tower_inventory_source"
# yamllint disable-line rule:line-length
inventorysource_spec: "{{ _tower_ansible_com_inventorysource.spec }}"
# yamllint disable-line rule:line-length
inventorysource_spec_collection: "{{ inventorysource_spec.collection | default('awx.awx') }}"
# yamllint disable-line rule:line-length
inventorysource_spec_config: "{{ inventorysource_spec.config | combine({'state': inventorysource_finalize_state}) }}"
# yamllint disable-line rule:line-length
inventorysource_spec_secret: "{{ inventorysource_spec.secret | mandatory }}"