Browse Source

Fix creating swagger-ui assets directory

merge-requests/172/head
Andrew Shu 4 weeks ago
parent
commit
f26f743002
  1. 16
      ansible/roles/swagger_ui/tasks/main.yml

16
ansible/roles/swagger_ui/tasks/main.yml

@ -1,21 +1,29 @@
---
- name: Copy our own custom swagger-ui web assets
- name: Create directory for swagger-ui web assets
file:
path: "{{ app_dir }}/static/swagger-ui"
state: directory
owner: "{{ app_username }}"
group: "{{ app_username }}"
mode: 0755
- name: Copy our custom swagger-ui web assets
block:
- name: Copy our own custom swagger-ui index.html
- name: Copy our custom swagger-ui index.html
copy:
src: "index.html"
dest: "{{ app_dir }}/static/swagger-ui/index.html"
owner: "{{ app_username }}"
group: "{{ app_username }}"
mode: 0644
- name: Copy our own custom swagger-ui index.css
- name: Copy our custom swagger-ui index.css
copy:
src: "index.css"
dest: "{{ app_dir }}/static/swagger-ui/index.css"
owner: "{{ app_username }}"
group: "{{ app_username }}"
mode: 0644
- name: Copy our own custom swagger-ui index.js
- name: Copy our custom swagger-ui index.js
copy:
src: "index.js"
dest: "{{ app_dir }}/static/swagger-ui/index.js"

Loading…
Cancel
Save