2018-02-16 11:52:29 +01:00
- debug :
msg : |
2018-03-01 16:46:59 +01:00
"IF {{ tenants_conf['dev-hobo'] }} or any sub-domain from 'tenants_conf' DNS is not configured locally, this playbook will block and fail. Check the documentation."
2018-02-16 11:52:29 +01:00
- name : compile site-options.cfg
template :
src : templates/site-options.cfg.j2
dest : "/tmp/site-options.cfg"
- name : compile config.json
template :
src : templates/config.json.j2
2018-02-21 14:41:43 +01:00
dest : "/tmp/config.json"
2018-02-16 11:52:29 +01:00
- name : "Zips the {{wcs_skeleton_filename}} cook configuration bundle"
archive :
path :
- /tmp/site-options.cfg
2018-02-21 14:41:43 +01:00
- /tmp/config.json
2018-02-16 11:52:29 +01:00
dest : /tmp/{{wcs_skeleton_filename}}
format : zip
- name : copies a wcs skeleton archive
copy :
src : "/tmp/{{wcs_skeleton_filename}}"
dest : "/var/lib/wcs/skeletons/{{wcs_skeleton_filename}}"
- name : copies a cook json template
template :
2018-05-17 18:25:11 +02:00
src : templates/cook-recipe.j2
2021-11-10 12:45:37 +01:00
dest : "{{cook_recipe_path}}"
2018-02-16 11:52:29 +01:00
2018-03-01 16:46:59 +01:00
- name : Run command hobo-manage to initiate the development subdomains and a super-user
2021-11-10 12:45:37 +01:00
command : "{{venv_py3_bin}}/hobo-manage cook {{cook_recipe_path}} --timeout=600"
2018-03-01 16:46:59 +01:00
- debug :
msg : |
"Houra ! Go and click manage on this URL https://{{tenants_conf['user-combo']}} with username = {{superuser_username}} and password = {{superuser_password}}"