main.yml 757 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: Dependencies installed
  3. community.general.pkgng:
  4. name: git-tiny
  5. state: latest
  6. tags:
  7. - build
  8. - name: Source folder exists
  9. file: path=/usr/local/src mode=0755 state=directory
  10. tags:
  11. - build
  12. - name: Drawio source fetched
  13. git:
  14. repo: "https://github.com/jgraph/drawio.git"
  15. dest: /usr/local/src/drawio
  16. force: yes
  17. accept_hostkey: yes
  18. update: yes
  19. tags:
  20. - build
  21. - name: Drawio build artifacts installed
  22. shell:
  23. cmd: mkdir -p /usr/local/www/drawio && cp -r /usr/local/src/drawio/src/main/webapp/ /usr/local/www/drawio/
  24. tags:
  25. - build
  26. - name: Nginx config file installed
  27. ansible.builtin.copy:
  28. src: nginx-location.conf
  29. dest: /usr/local/etc/nginx/locations/
  30. notify: Nginx restarted