Advertisement
mouchon

Untitled

Dec 15th, 2016
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ---
  2. - name: Upload dashboard files from git repo
  3. git:
  4. repo: "{{ item.dashboard.src }}"
  5. dest: "/tmp/"
  6. clone: yes
  7. update: yes
  8. version: "{{ item.dashboard.branch }}"
  9. when: "{{ item.dashboard.type == 'git' }}"
  10. with_items: "{{dashboard_src}}"
  11.  
  12. - name: Upload dashboard files from dir
  13. copy:
  14. src: "{{ item.dashboard.src }}"
  15. dest: "/tmp/"
  16. when: "{{ item.dashboard.type == 'file' }}"
  17. with_items: "{{dashboard_src}}"
  18.  
  19. - name: Copy dashboard content to horizon
  20. file:
  21. src: "/tmp/{{item.name}}/{{item.dashboard_dir}}/"
  22. dest: "{{dashboard_dashboards_folder}}/{{item.dashboard.dashboard_dir}}"
  23. when: "{{ item.dashboard.type == 'file' or item.dashboard.type == 'git' }}"
  24. with_items: "{{dashboard_src}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement