Browse Source

Moving file to the image to fix error.

Kenny Woodson 6 years ago
parent
commit
7181ff1292
1 changed files with 10 additions and 10 deletions
  1. 10 10
      playbooks/azure/openshift-cluster/build_node_image.yml

+ 10 - 10
playbooks/azure/openshift-cluster/build_node_image.yml

@@ -87,16 +87,6 @@
       content: "{{ oreg_url }}"
     when: oreg_url is defined
 
-  - name: run waagent deprovision
-    shell: sleep 2 && waagent -deprovision+user -force
-    async: 1
-    poll: 0
-
-- hosts: localhost
-  gather_facts: no
-  tasks:
-  - set_fact:
-      openshift_rpm: "{{ hostvars[groups['nodes'][0]]['yum'].results | selectattr('name', 'match', '^(origin|atomic-openshift)$') | first }}"
   - name: create a file with image name
     copy:
       content: |
@@ -110,6 +100,16 @@
       group: root
       mode: '0440'
 
+  - name: run waagent deprovision
+    shell: sleep 2 && waagent -deprovision+user -force
+    async: 1
+    poll: 0
+
+- hosts: localhost
+  gather_facts: no
+  tasks:
+  - set_fact:
+      openshift_rpm: "{{ hostvars[groups['nodes'][0]]['yum'].results | selectattr('name', 'match', '^(origin|atomic-openshift)$') | first }}"
   - name: create image
     import_tasks: tasks/create_image_from_vm.yml
     vars: