Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

40 rindas
793B

  1. ---
  2. - include_tasks: setup_Debian.yml
  3. - name: nginx.conf
  4. template:
  5. src: nginx.conf.j2
  6. dest: /etc/nginx/nginx.conf
  7. notify: reload nginx
  8. - name: default vhost
  9. template:
  10. src: default-vhost.conf.j2
  11. dest: /etc/nginx/sites-available/default
  12. notify: reload nginx
  13. - name: vhosts
  14. template:
  15. src: vhost.conf.j2
  16. dest: /etc/nginx/sites-available/{{vhost.name}}
  17. notify: reload nginx
  18. with_items: "{{ nginx_vhosts }}"
  19. loop_control:
  20. loop_var: vhost
  21. - name: enable vhosts
  22. file:
  23. src: ../sites-available/{{vhost.name}}
  24. dest: /etc/nginx/sites-enabled/{{vhost.name}}
  25. state: link
  26. notify: reload nginx
  27. with_items: "{{ nginx_vhosts }}"
  28. loop_control:
  29. loop_var: vhost
  30. - name: ensure nginx is started
  31. service:
  32. name: nginx
  33. state: started