finish basic task script, remove non used folders
This commit is contained in:
parent
4df9bf2484
commit
a093293704
7 changed files with 234 additions and 10 deletions
|
@ -1,2 +1,12 @@
|
|||
---
|
||||
# defaults file for .
|
||||
cat_user: cat
|
||||
cat_homedir: cat
|
||||
|
||||
cat_postgres_db: cat
|
||||
cat_postgres_user: cat_user
|
||||
|
||||
# sensitive info
|
||||
cat_postgres_password: "{{ vault_cat_postgres_password }}"
|
||||
|
||||
cat_git_destination: /home/{{ cat_user }}/cat_src
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
# handlers file for .
|
BIN
logo/cat_wrench.png
Normal file
BIN
logo/cat_wrench.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
141
logo/cat_wrench.svg
Normal file
141
logo/cat_wrench.svg
Normal file
|
@ -0,0 +1,141 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
sodipodi:docname="cat_wrench.svg"
|
||||
inkscape:version="0.92.2 2405546, 2018-03-11">
|
||||
<metadata
|
||||
id="metadata8">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs6" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="640"
|
||||
inkscape:window-height="480"
|
||||
id="namedview4"
|
||||
showgrid="false"
|
||||
inkscape:current-layer="svg2" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 374.22874,139.6064 C 407.21108,105.47352 402.22538,21.867136 389.56936,11.512217 376.91335,1.1572969 320.53656,9.9781544 295.99157,35.673696"
|
||||
id="path1092" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 60.21194,139.6064 C 27.229603,105.47352 32.215306,21.867136 44.871319,11.512217 57.527331,1.1572969 113.90412,9.9781544 138.44911,35.673696"
|
||||
id="path859" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#fd99c7;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 360.8057,101.25485 c 11.83652,-28.100346 9.10947,-60.182079 6.13625,-63.280061 -3.63248,-3.784903 -30.66241,5.222611 -43.84513,13.591131"
|
||||
id="path1094" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#fd99c7;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 73.634984,101.25485 C 61.798465,73.154504 64.525517,41.072771 67.498735,37.974789 71.060797,34.263254 97.122009,42.852994 110.5619,51.078638"
|
||||
id="path1088" />
|
||||
<path
|
||||
d="m 140.40877,305.441 c -0.62517,22.50617 -42.417408,78.71785 -36.81555,112.18612 1.40488,9.27907 3.11704,18.92689 5.42373,29.28813 10.51845,29.5673 32.81356,57.49153 52.88136,57.49153 h 110.64406 c 20.0678,0 43.37654,-27.58298 52.88136,-57.49153 2.95776,-9.3071 3.69181,-18.35683 5.42373,-29.28813 5.31012,-33.5158 -36.19038,-89.67995 -36.81555,-112.18612"
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
id="path1928"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccssssc" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#8f5ea6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.71686232;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 135.64,331.52005 c 26.84608,14.13071 143.05129,11.58718 171.04793,0 l -12.65602,-26.07905 -72.48443,5.36922 -77.47014,-5.75273 z"
|
||||
id="path1930"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 333.68157,411.66449 c 31.38408,-4.9701 26.66501,-85.78513 62.10647,-136.6771 14.7762,-21.2178 36.20033,-36.34979 52.51634,-42.60344 26.09563,-10.002 36.91783,20.01989 21.79005,32.90791 -11.08357,9.44258 -25.74827,13.72675 -39.02296,30.02186 -5.76523,6.90885 -10.22402,15.908 -14.19007,25.69554 -15.3854,33.39762 -12.68523,125.21831 -90.97385,135.94271"
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
id="path1106"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="csssccc" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 382.28257,192.91507 C 375.36001,54.633904 280.82577,16.141659 217.22034,16.141659 c -63.60543,0 -158.139662,38.492245 -165.062226,176.773411 -5.755089,114.96035 113.904116,117.35575 165.062226,117.35575 51.15811,0 170.81732,-2.3954 165.06223,-117.35575 z"
|
||||
id="path1090" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#8f5ea6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 358.22657,389.03707 c 7.67031,32.2153 -2.30109,62.51303 -2.30109,62.51303 l -31.83179,8.05383 9.58788,-47.93944 z"
|
||||
id="path1108"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
id="path843"
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 416.8814,321.00926 c -15.3854,33.39762 -12.68523,125.21831 -90.97385,135.94271 m 7.77402,-45.28748 c 31.38408,-4.9701 26.66501,-85.78513 62.10647,-136.6771 14.7762,-21.2178 36.20033,-36.34979 52.51634,-42.60344 26.09563,-10.002 36.91783,20.01989 21.79005,32.90791 -11.08357,9.44258 -25.74827,13.72675 -39.02296,30.02186" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 253.83051,504.13559 c 17.8983,-33.62712 18.98306,-68.92501 17.89831,-102.50847"
|
||||
id="path1925" />
|
||||
<path
|
||||
id="path851"
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 140.40877,305.441 c -0.62517,22.50617 -42.417408,78.71785 -36.81555,112.18612 0.82347,8.77827 1.32021,17.22981 5.42373,29.28813 10.51845,29.5673 32.81356,57.49153 52.88136,57.49153 h 110.64406 c 20.0678,0 43.37654,-27.58298 52.88136,-57.49153 2.95776,-9.3071 3.69181,-18.35683 5.42373,-29.28813 5.31012,-33.5158 -36.19038,-89.67995 -36.81555,-112.18612"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccssssc" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#fd99c7;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 281.70561,203.17411 h 21.28512"
|
||||
id="path1104" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 291.96466,164.91843 v 17.44996"
|
||||
id="path1102" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 203.455,196.3667 c 6.26995,8.38552 20.39354,8.81195 27.2296,0.19177"
|
||||
id="path1100" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#fd99c7;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 152.73507,203.17411 H 131.44995"
|
||||
id="path1098" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 142.47602,164.91843 v 17.44996"
|
||||
id="path855" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:#333333;stroke-width:25;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="m 58.911254,411.99341 c 6.105952,5.07228 15.104657,4.24015 20.17694,-1.86582 l 4.476687,-5.38899 89.886719,74.66979 c 6.10595,5.07226 15.10468,4.24013 20.17695,-1.86581 5.07227,-6.10593 4.24013,-15.10469 -1.86582,-20.17695 l -89.88671,-74.66978 4.47669,-5.38899 c 5.07228,-6.10597 4.24016,-15.10467 -1.86581,-20.17695 L 88.321405,343.70108 c -6.105949,-5.07229 -15.104661,-4.24014 -20.176937,1.86581 l -0.203456,0.24487 9.738356,8.08974 c 8.57579,7.124 5.988115,16.82122 -1.056696,25.3017 -7.044815,8.48048 -15.799927,12.43758 -24.375725,5.31358 l -9.738347,-8.08974 -1.628676,1.96058 c -5.072284,6.10597 -4.240155,15.10467 1.865807,20.17695 z"
|
||||
id="rect2075"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="csccscccscccsssccsc" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#8f5ea6;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="M 217.22034,498.96047 V 401.62712"
|
||||
id="path1164"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="opacity:1;vector-effect:none;fill:#a66bc2;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
d="m 217.22034,411.53365 c 1.92793,19.16417 -33.09171,56.45597 -37.33669,62.37372 -15.38428,21.44656 -50.74914,6.02894 -33.73978,-21.05975 8.23596,-13.1164 19.46194,-30.65691 23.21318,-51.2205"
|
||||
id="path1921"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cssc" />
|
||||
</svg>
|
After Width: | Height: | Size: 11 KiB |
|
@ -1,6 +1,6 @@
|
|||
galaxy_info:
|
||||
author: your name
|
||||
description: your description
|
||||
author: Maxime Bloch
|
||||
description: deployment/update role for the cat application
|
||||
company: your company (optional)
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
|
@ -14,7 +14,7 @@ galaxy_info:
|
|||
# - GPLv3
|
||||
# - Apache
|
||||
# - CC-BY
|
||||
license: license (GPLv2, CC-BY, etc)
|
||||
license: MIT
|
||||
|
||||
min_ansible_version: 2.4
|
||||
|
||||
|
|
|
@ -1,2 +1,79 @@
|
|||
---
|
||||
# tasks file for .
|
||||
|
||||
########
|
||||
# User #
|
||||
########
|
||||
|
||||
- name: Create cat user
|
||||
user:
|
||||
name: "{{ cat_user }}"
|
||||
|
||||
|
||||
|
||||
############
|
||||
# Database #
|
||||
############
|
||||
|
||||
- name: Install psql
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
vars:
|
||||
packages:
|
||||
- psycopg2
|
||||
- postgres-9.6
|
||||
|
||||
- name: Create database
|
||||
become: yes
|
||||
become_user: postgres
|
||||
postgresql_db:
|
||||
name: "{{ cat_postgres_db }}"
|
||||
|
||||
- name: Create database user
|
||||
become: yes
|
||||
become_user: postgres
|
||||
postgresql_user:
|
||||
db: "{{ cat_postgres_db }}"
|
||||
name: "{{ cat_postgres_user }}"
|
||||
password: "{{ cat_postgres_password }}"
|
||||
|
||||
- name: Clone cat repo
|
||||
repo: ssh://git@git.zeus.gent:2222/ZeusWPI/cat.git
|
||||
dest: "{{ cat_git_destination }}"
|
||||
accept_hostkey: yes
|
||||
|
||||
##################################
|
||||
# Download and install leiningen #
|
||||
##################################
|
||||
|
||||
- name: Make sure java is installed
|
||||
apt:
|
||||
name: java
|
||||
|
||||
- name: set user bin dir
|
||||
set_fact:
|
||||
user_bin_dir: /usr/bin
|
||||
|
||||
- name: Download leiningen
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
|
||||
dest: "{{ user_bin_dir }}"
|
||||
|
||||
- name: Add executable permission for lein script
|
||||
file:
|
||||
path: "{{ user_bin_dir }}/lein"
|
||||
mode: "a+x"
|
||||
|
||||
###################
|
||||
# Compile and run #
|
||||
###################
|
||||
|
||||
- name: Compile to jar
|
||||
shell: lein uberjar
|
||||
args:
|
||||
chdir: "{{ cat_git_destination }}"
|
||||
|
||||
- name: Run jar
|
||||
shell: java -jar {{cat_git_destination }}/target/uberjar/cat.jar
|
||||
environment:
|
||||
DATABASE_URL: "postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}"
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
# vars file for .
|
Loading…
Reference in a new issue