* Fixed ansible file paths

idk how i missed all this
This commit is contained in:
shockrah 2021-10-22 23:42:02 -07:00
parent b4f2902b46
commit 17aa75a01e

View File

@ -4,26 +4,26 @@
- hosts: mainhost - hosts: mainhost
remote_user: admin remote_user: admin
vars: vars:
app_dir: /opt/app app_dir: /home/admin/app
tasks: tasks:
- name: Build skeleton root directory - name: Build skeleton root directory
file: file:
path: '{{app_dir}}' path: '{{app_dir}}'
state: directory state: directory
- name: Build skeleton static directory
file:
path: '{{app_dir}}/static'
state: directory
- name: Build skeleton css directory - name: Build skeleton css directory
file: file:
path: '{{app_dir}}/css' path: '{{app_dir}}/static/css'
state: directory state: directory
- name: Build skeleton js directory - name: Build skeleton js directory
file: file:
path: '{{app_dir}}/js' path: '{{app_dir}}/static/js'
state: directory
- name: Build skeleton static directory
file:
path: '{{app_dir}}/static'
state: directory state: directory
- name: Build skeleton templates directory - name: Build skeleton templates directory
@ -36,7 +36,7 @@
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
with_items: with_items:
- { src: ../../build/static/css/style.css, dest: '{{app_dir}}/'} - { src: ../../build/static/css/style.css, dest: '{{app_dir}}/static/css/'}
- { src: ../../build/static/js/index.js, dest: '{{app_dir}}/js/'} - { src: ../../build/static/js/index.js, dest: '{{app_dir}}/js/'}
- { src: ../../build/static/js/category.js, dest: '{{app_dir}}/js/'} - { src: ../../build/static/js/category.js, dest: '{{app_dir}}/js/'}
- { src: ../../build/static/cantfindshit.jpg, dest: '{{app_dir}}/static/'} - { src: ../../build/static/cantfindshit.jpg, dest: '{{app_dir}}/static/'}
@ -51,4 +51,4 @@
become_method: sudo become_method: sudo
service: service:
name: app name: app
state: restarted state: restarted