summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone/pod/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kubernetes/standalone/pod/tasks/main.yml')
-rw-r--r--roles/kubernetes/standalone/pod/tasks/main.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/roles/kubernetes/standalone/pod/tasks/main.yml b/roles/kubernetes/standalone/pod/tasks/main.yml
index 73048a81..7f87cf3f 100644
--- a/roles/kubernetes/standalone/pod/tasks/main.yml
+++ b/roles/kubernetes/standalone/pod/tasks/main.yml
@@ -10,9 +10,10 @@
- name: gather stats for config-hash items
loop: "{{ kubernetes_standalone_pod.config_hash_items }}"
loop_control:
- label: "{{ item.path }} ({{ item.properties | sort | join(', ') }})"
+ loop_var: config_hash_item
+ label: "{{ config_hash_item.path }} ({{ config_hash_item.properties | sort | join(', ') }})"
stat:
- path: "{{ item.path }}"
+ path: "{{ config_hash_item.path }}"
get_checksum: yes
checksum_algorithm: sha256
register: config_hash_items_stat
@@ -25,8 +26,8 @@
copy:
content: |
{% for result in config_hash_items_stat.results %}
- {{ result.item.path }}:
- {% for property in (result.item.properties | sort) %}
+ {{ result.config_hash_item.path }}:
+ {% for property in (result.config_hash_item.properties | sort) %}
{{ property }}: {{ result.stat[property] }}
{% endfor %}
{% endfor %}