You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
968 B

---
- 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 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 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 custom swagger-ui index.js
copy:
src: "index.js"
dest: "{{ app_dir }}/static/swagger-ui/index.js"
owner: "{{ app_username }}"
group: "{{ app_username }}"
mode: 0644