mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 03:05:51 +02:00
Update to 2022-09-21 10:00
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
---
|
||||
|
||||
# Version of consul to deploy
|
||||
consul_version: 1.13.1
|
||||
consul_version: 1.13.2
|
||||
# URL from where the consul archive will be downloaded
|
||||
consul_archive_url: https://releases.hashicorp.com/consul/{{ consul_version }}/consul_{{ consul_version }}_linux_amd64.zip
|
||||
# Expected sha256 of the archive
|
||||
consul_archive_sha256: 7f8f69b631114e0a021b602a1975e0221912b8b33ef20ead1589d6f6581c5579
|
||||
consul_archive_sha256: a72e88cbfec6c0fb3620cd58314ff0b42fc9d605a5192d6a568a417180f0b35f
|
||||
|
||||
# user account under which consul will run (will be created if needed)
|
||||
consul_user: consul
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user