mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
There is no need to stat the templated file, because the template module already returns a checksum.
28 lines
662 B
YAML
28 lines
662 B
YAML
---
|
|
- name: Haproxy | Cleanup potentially deployed haproxy
|
|
file:
|
|
path: "{{ kube_manifest_dir }}/haproxy.yml"
|
|
state: absent
|
|
|
|
- name: Nginx-proxy | Make nginx directory
|
|
file:
|
|
path: "{{ nginx_config_dir }}"
|
|
state: directory
|
|
mode: "0700"
|
|
owner: root
|
|
|
|
- name: Nginx-proxy | Write nginx-proxy configuration
|
|
template:
|
|
src: "loadbalancer/nginx.conf.j2"
|
|
dest: "{{ nginx_config_dir }}/nginx.conf"
|
|
owner: root
|
|
mode: "0755"
|
|
backup: true
|
|
register: nginx_conf
|
|
|
|
- name: Nginx-proxy | Write static pod
|
|
template:
|
|
src: manifests/nginx-proxy.manifest.j2
|
|
dest: "{{ kube_manifest_dir }}/nginx-proxy.yml"
|
|
mode: "0640"
|