mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 02:41:36 +01:00 
			
		
		
		
	Update to 2022-09-21 10:00
This commit is contained in:
		| @@ -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
	 Daniel Berteaud
					Daniel Berteaud