Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
923 B

  1. ---
  2. - name: Create the http.conf directory for nginx
  3. file:
  4. state: directory
  5. dest: "/etc/nginx/http.conf.d"
  6. delegate_to: reverse_proxy
  7. - name: Upload http to reverse proxy
  8. template:
  9. src: http.j2
  10. dest: "/etc/nginx/http.conf.d/http_{{ hostname }}.conf"
  11. delegate_to: reverse_proxy
  12. - name: Create the map.conf directory for nginx
  13. file:
  14. state: directory
  15. dest: "/etc/nginx/map.conf.d"
  16. delegate_to: reverse_proxy
  17. - name: Create the upstream.conf directory for nginx
  18. file:
  19. state: directory
  20. dest: "/etc/nginx/upstream.conf.d"
  21. delegate_to: reverse_proxy
  22. - name: Upload mappings to reverse proxy
  23. template:
  24. src: map.j2
  25. dest: "/etc/nginx/map.conf.d/map_{{ hostname }}.conf"
  26. delegate_to: reverse_proxy
  27. - name: Upload upstream to reverse proxy
  28. template:
  29. src: upstream.j2
  30. dest: "/etc/nginx/upstream.conf.d/upstream_{{ hostname }}.conf"
  31. delegate_to: reverse_proxy