mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-30 18:31:28 +01:00 
			
		
		
		
	Update to 2022-08-06 12:00
This commit is contained in:
		| @@ -5,12 +5,16 @@ | ||||
|   tags: nomad | ||||
|  | ||||
| - name: Snapshot nomad data | ||||
|   command: "{{ nomad_root_dir }}/bin/nomad operator save {{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap" | ||||
|   command: "{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap" | ||||
|   args: | ||||
|     creates: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap" | ||||
|   environment: | ||||
|     NOMAD_TOKEN: "{{ nomad_mgm_token | default(omit) }}" | ||||
|   tags: nomad | ||||
|  | ||||
| - name: Backup previous version | ||||
|   synchronize: | ||||
|     src: "{{ item }}" | ||||
|     src: "{{ nomad_root_dir }}/{{ item }}" | ||||
|     dest: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}/" | ||||
|     compress: False | ||||
|   delegate_to: "{{ inventory_hostname }}" | ||||
|   | ||||
| @@ -32,6 +32,7 @@ | ||||
|  | ||||
| - when: nomad_bin.stat.exists and nomad_current_version != nomad_version | ||||
|   set_fact: nomad_install_mode='upgrade' | ||||
|   tags: nomad | ||||
|  | ||||
| - name: Build a list of enabled task drivers | ||||
|   set_fact: nomad_enabled_task_drivers={{ nomad_conf.client.task_drivers | dict2items | selectattr('value.enabled', 'equalto', True) | map(attribute='key') }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud