Update to 2022-09-21 10:00

This commit is contained in:
Daniel Berteaud
2022-09-21 10:00:09 +02:00
parent e6019f8e32
commit fceaba12ae
6 changed files with 12 additions and 8 deletions

View File

@@ -8,9 +8,11 @@
command: "{{ consul_root_dir }}/bin/consul snapshot save {{ consul_root_dir }}/archives/{{ consul_current_version }}/consul.snap"
args:
creates: "{{ consul_root_dir }}/archives/{{ consul_current_version }}/consul.snap"
when: consul_conf.server
when:
- consul_conf.server
- not consul_conf.acl.enabled or consul_mgm_token is defined
environment:
CONSUL_TOKEN: "{{ consul_mgm_token | default(omit) }}"
CONSUL_TOKEN: "{{ consul_mgm_token | default('') }}"
tags: consul
- name: Backup previous version

View File

@@ -29,6 +29,7 @@
dest: "{{ consul_root_dir }}/bin/consul"
remote_src: True
mode: 755
notify: restart consul
- name: Link in /usr/local/bin
file: src={{ consul_root_dir }}/bin/consul dest=/usr/local/bin/consul state=link force=True