Hi all,
I would like to use ansible to spawn (and later prune) a list of `jupyter
notebook` servers.
I now do the following:
---
- hosts: vm1
roles:
- { role: notebook, port: 8001, name: jup1 }
- { role: notebook, port: 8002, name: jup2 }
- role: jdauphant.nginx
nginx_sites:
notebooks:
- listen 8000
- server_name localhost
- location /jub1 {proxy_pass http://localhost:8001/tree;}
- location /jup2 {proxy_pass http://localhost:8002/tree;}
As you see I repeat the port (8001 and 8002) and name (jup1 and jup2)
twice, which I would like to do in a loop, but I don't know how.
I'm completely new to ansible, so if this is not a smart way of doing it,
could you please give another suggestion.
Best, Bas Nijholt
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/17adc425-afae-4725-9d81-fed2b8489aac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.