浏览代码

Merge pull request #8901 from kwoodson/azure_log_tag_info

Adding image tag logging.
Jim Minter 6 年之前
父节点
当前提交
58708aff42
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      playbooks/azure/openshift-cluster/tasks/create_image_from_vm.yml

+ 12 - 0
playbooks/azure/openshift-cluster/tasks/create_image_from_vm.yml

@@ -52,3 +52,15 @@
     -g "{{ image_resource_group }}"
     -n "{{ image_name }}"
     --tags {% for k in final_tags %}{{ k }}={{ final_tags[k] }} {% endfor %}
+
+- name: log image resource group and name
+  debug:
+    msg: "{{ item }}"
+  with_items:
+  - "Resource group: {{ image_resource_group }}"
+  - "Image name: {{ image_name }}"
+
+- name: log image tag information
+  debug:
+    msg: "{{ item.key }}: {{ item.value }}"
+  with_dict: "{{ final_tags }}"