[upd] role:tandoor
This commit is contained in:
parent
e4a5beddcc
commit
969a3187a9
|
|
@ -47,6 +47,16 @@
|
||||||
"cmd": "python3 -m venv program"
|
"cmd": "python3 -m venv program"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "configuration",
|
||||||
|
"become": true,
|
||||||
|
"become_user": "{{var_tandoor_user}}",
|
||||||
|
"ansible.builtin.template": {
|
||||||
|
"src": "conf.j2",
|
||||||
|
"dest": "{{var_tandoor_directory}}/program/.env",
|
||||||
|
"mode": "644"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "python requirements",
|
"name": "python requirements",
|
||||||
"become": true,
|
"become": true,
|
||||||
|
|
@ -58,13 +68,22 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration",
|
"name": "frontend stuff | core",
|
||||||
"become": true,
|
"become": true,
|
||||||
"become_user": "{{var_tandoor_user}}",
|
"become_user": "{{var_tandoor_user}}",
|
||||||
"ansible.builtin.template": {
|
"ansible.builtin.shell": {
|
||||||
"src": "conf.j2",
|
"chdir": "{{var_tandoor_directory}}/program/vue3",
|
||||||
"dest": "{{var_tandoor_directory}}/program/.env",
|
"cmd": "yarn install && yarn build"
|
||||||
"mode": "644"
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "frontend stuff | link",
|
||||||
|
"become": true,
|
||||||
|
"become_user": "{{var_tandoor_user}}",
|
||||||
|
"ansible.builtin.file": {
|
||||||
|
"type": "link",
|
||||||
|
"src": "{{var_tandoor_directory}}/program/cookbook/static/vue3",
|
||||||
|
"dest": "{{var_tandoor_directory}}/program/staticfiles/vue3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -96,26 +115,6 @@
|
||||||
"cmd": "DJANGO_SUPERUSER_PASSWORD={{var_tandoor_admin_password}} bin/python3 manage.py createsuperuser --no-input --username {{var_tandoor_admin_username}} --email {{var_tandoor_admin_email}}"
|
"cmd": "DJANGO_SUPERUSER_PASSWORD={{var_tandoor_admin_password}} bin/python3 manage.py createsuperuser --no-input --username {{var_tandoor_admin_username}} --email {{var_tandoor_admin_email}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"name": "frontend stuff | core",
|
|
||||||
"become": true,
|
|
||||||
"become_user": "{{var_tandoor_user}}",
|
|
||||||
"ansible.builtin.shell": {
|
|
||||||
"chdir": "{{var_tandoor_directory}}/program/vue",
|
|
||||||
"cmd": "yarnpkg install && yarnpkg build"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "frontend stuff | link",
|
|
||||||
"become": true,
|
|
||||||
"become_user": "{{var_tandoor_user}}",
|
|
||||||
"ansible.builtin.file": {
|
|
||||||
"type": "link",
|
|
||||||
"src": "{{var_tandoor_directory}}/program/cookbook/static/vue",
|
|
||||||
"dest": "{{var_tandoor_directory}}/program/staticfiles/vue"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "systemd unit",
|
"name": "systemd unit",
|
||||||
"become": true,
|
"become": true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue