diff --git a/provisioning/hosts b/provisioning/hosts new file mode 100644 index 0000000..101a138 --- /dev/null +++ b/provisioning/hosts @@ -0,0 +1,2 @@ +[openwind] +localhost ansible_connection=local diff --git a/provisioning/roles/geospaas/tasks/main.yml b/provisioning/roles/geospaas/tasks/main.yml index b4f66ab..a7511d2 100644 --- a/provisioning/roles/geospaas/tasks/main.yml +++ b/provisioning/roles/geospaas/tasks/main.yml @@ -4,6 +4,7 @@ src={{ project_home }}/{{ project_name }} state=link force=yes + ignore_errors: yes #- name: geospaas | Link geospaas from site-packages # file: path='{{ python_dist_packages }}/openwind' diff --git a/provisioning/roles/openwind/tasks/main.yml b/provisioning/roles/openwind/tasks/main.yml index 7560b25..37c54c1 100644 --- a/provisioning/roles/openwind/tasks/main.yml +++ b/provisioning/roles/openwind/tasks/main.yml @@ -5,6 +5,7 @@ - name: openwind | Change owner of anaconda directory (otherwise later provisioning will fail) shell: "sudo chown -R vagrant {{ conda_dir }}/" + ignore_errors: yes - name: openwind | create file activate.d/env_vars.sh in conda env file: @@ -69,13 +70,13 @@ - name: openwind | Sync script heading lineinfile: - path: /home/vagrant/daily_sync.sh + path: "{{ project_home }}/daily_sync.sh" insertbefore: BOF line: "#!/bin/bash" - name: openwind | Sync script content blockinfile: - path: /home/vagrant/daily_sync.sh + path: "{{ project_home }}/daily_sync.sh" block: | export PROJ_LIB={{ conda_dir }}/envs/{{ env_name }}/share/proj source {{ conda_dir }}/bin/activate {{ env_name }}