Преглед изворни кода

azure: tag working resource groups with "now", so that they will be pruned if necessary

Jim Minter пре 6 година
родитељ
комит
6432c3a44b
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      playbooks/azure/openshift-cluster/tasks/provision_instance.yml

+ 2 - 0
playbooks/azure/openshift-cluster/tasks/provision_instance.yml

@@ -3,6 +3,8 @@
   azure_rm_resourcegroup:
     name: "{{ openshift_azure_resource_group_name }}"
     location: "{{ openshift_azure_resource_location }}"
+    tags:
+      now: "{{ lookup('pipe', 'date +%s') }}"
 
 - name: create vnet
   azure_rm_virtualnetwork: