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.

34 lines
819 B

  1. ---
  2. - name: Haproxy | Cleanup potentially deployed haproxy
  3. file:
  4. path: "{{ kube_manifest_dir }}/haproxy.yml"
  5. state: absent
  6. - name: Nginx-proxy | Make nginx directory
  7. file:
  8. path: "{{ nginx_config_dir }}"
  9. state: directory
  10. mode: 0700
  11. owner: root
  12. - name: Nginx-proxy | Write nginx-proxy configuration
  13. template:
  14. src: "loadbalancer/nginx.conf.j2"
  15. dest: "{{ nginx_config_dir }}/nginx.conf"
  16. owner: root
  17. mode: 0755
  18. backup: yes
  19. - name: Nginx-proxy | Get checksum from config
  20. stat:
  21. path: "{{ nginx_config_dir }}/nginx.conf"
  22. get_attributes: no
  23. get_checksum: yes
  24. get_mime: no
  25. register: nginx_stat
  26. - name: Nginx-proxy | Write static pod
  27. template:
  28. src: manifests/nginx-proxy.manifest.j2
  29. dest: "{{ kube_manifest_dir }}/nginx-proxy.yml"
  30. mode: 0640