diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-03-15 19:03:29 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-03-15 19:03:29 +0100 |
commit | 47b6773ea74b4ca64a585fb68807f1d4ed0676f9 (patch) | |
tree | 3f806c3d4d786e63de235a50be959b4288dac9b9 /roles/kubernetes/standalone | |
parent | etherpad-lite image has been moved (diff) |
kubernetes/standalone: add default config hash item properties
Diffstat (limited to 'roles/kubernetes/standalone')
-rw-r--r-- | roles/kubernetes/standalone/pod/defaults/main.yml | 6 | ||||
-rw-r--r-- | roles/kubernetes/standalone/pod/tasks/main.yml | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/roles/kubernetes/standalone/pod/defaults/main.yml b/roles/kubernetes/standalone/pod/defaults/main.yml index 2eae33a3..ac0e15a3 100644 --- a/roles/kubernetes/standalone/pod/defaults/main.yml +++ b/roles/kubernetes/standalone/pod/defaults/main.yml @@ -1,4 +1,10 @@ --- +kubernetes_standalone_pod_default_config_hash_item_properties: + - checksum + - mode + - uid + - gid + # kubernetes_standalone_pod: # name: example # labels: diff --git a/roles/kubernetes/standalone/pod/tasks/main.yml b/roles/kubernetes/standalone/pod/tasks/main.yml index 9ac6b497..3a6cd7e2 100644 --- a/roles/kubernetes/standalone/pod/tasks/main.yml +++ b/roles/kubernetes/standalone/pod/tasks/main.yml @@ -11,7 +11,7 @@ loop: "{{ kubernetes_standalone_pod.config_hash_items }}" loop_control: loop_var: config_hash_item - label: "{{ config_hash_item.path }} ({{ config_hash_item.properties | sort | join(', ') }})" + label: "{{ config_hash_item.path }} ({{ config_hash_item.properties | default(kubernetes_standalone_pod_default_config_hash_item_properties) | sort | join(', ') }})" stat: path: "{{ config_hash_item.path }}" get_checksum: yes @@ -27,7 +27,7 @@ content: | {% for result in config_hash_items_stat.results %} {{ result.config_hash_item.path }}: - {% for property in (result.config_hash_item.properties | sort) %} + {% for property in (result.config_hash_item.properties | default(kubernetes_standalone_pod_default_config_hash_item_properties) | sort) %} {{ property }}: {{ result.stat[property] }} {% endfor %} {% endfor %} |