12345678910111213141516171819202122232425262728293031323334 |
- ---
- - name: Dependencies installed
- community.general.pkgng:
- name: git-tiny
- state: latest
- tags:
- - build
- - name: Source folder exists
- file: path=/usr/local/src mode=0755 state=directory
- tags:
- - build
- - name: Drawio source fetched
- git:
- repo: "https://github.com/jgraph/drawio.git"
- dest: /usr/local/src/drawio
- force: yes
- accept_hostkey: yes
- update: yes
- tags:
- - build
- - name: Drawio build artifacts installed
- shell:
- cmd: mkdir -p /usr/local/www/drawio && cp -r /usr/local/src/drawio/src/main/webapp/ /usr/local/www/drawio/
- tags:
- - build
- - name: Nginx config file installed
- ansible.builtin.copy:
- src: nginx-location.conf
- dest: /usr/local/etc/nginx/locations/
- notify: Nginx restarted
|