aboutsummaryrefslogtreecommitdiffstats
path: root/resources/roles/qtip-bootstrap/tasks
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 18:08:42 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 19:55:00 +0800
commita6d8313b300453c15e7c2438979db6253b6e6819 (patch)
tree1dd44016c906bab05edd6ca09e5b6e63a5d74210 /resources/roles/qtip-bootstrap/tasks
parenta1325130fdbbab0c58a08d636b8c0419504020a8 (diff)
Fix workspace creator
- handle relative path in workspace - handle differences between installers - create working directories Change-Id: I5fbe66c1218c29db0fafd87085a6cf5c15a91dc5 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/roles/qtip-bootstrap/tasks')
-rw-r--r--resources/roles/qtip-bootstrap/tasks/main.yml18
1 files changed, 7 insertions, 11 deletions
diff --git a/resources/roles/qtip-bootstrap/tasks/main.yml b/resources/roles/qtip-bootstrap/tasks/main.yml
index 96d6c7d8..e198732b 100644
--- a/resources/roles/qtip-bootstrap/tasks/main.yml
+++ b/resources/roles/qtip-bootstrap/tasks/main.yml
@@ -9,17 +9,13 @@
- name: copy initial files
synchronize:
- src: "{{ item }}"
- dest: "{{ workspace }}"
- with_items:
- - group_vars
- - host_vars
- - fixtures
+ src: copy/
+ dest: "{{ workspace }}/"
- name: generate default configuration
template:
- src: "{{ item }}.j2"
- dest: "{{ workspace }}/{{ item }}"
- with_items:
- - ansible.cfg
- - hosts
+ src: "{{ item.src }}"
+ dest: "{{ workspace }}/{{ item.path }}"
+ force: yes
+ with_filetree: render
+ when: item.state == 'file'