replace command with make
Change-Id: I3c20844fbdb02f22ae6b902351261da26f29b7ee
diff --git a/roles/xos-compute-setup/tasks/main.yml b/roles/xos-compute-setup/tasks/main.yml
index d159ff1..08c4f73 100644
--- a/roles/xos-compute-setup/tasks/main.yml
+++ b/roles/xos-compute-setup/tasks/main.yml
@@ -4,14 +4,17 @@
# Tell XOS that a new compute node has been added
- name: Build XOS containers
- command: chdir="{{ service_profile_repo_dest }}/{{ xos_configuration }}" bash -c "make new-nodes |& tee xos-new-nodes.out"
- tags:
- - skip_ansible_lint
+ make:
+ chdir: "{{ service_profile_repo_dest }}/{{ xos_configuration }}"
+ target: new-nodes
- name: Pause 5 seconds
pause: seconds=5
+- name: Remove vtn-external.yaml
+ file: path="{{ service_profile_repo_dest }}/{{ xos_configuration }}/vtn-external.yaml" state=absent
+
- name: Rebuild VTN configuration with new nodes block
- command: chdir="{{ service_profile_repo_dest }}/{{ xos_configuration }}" bash -c "rm -f vtn-external.yaml; make vtn |& tee xos-makevtn2.out"
- tags:
- - skip_ansible_lint
+ make:
+ chdir: "{{ service_profile_repo_dest }}/{{ xos_configuration }}"
+ target: vtn