mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-30 18:31:28 +01:00 
			
		
		
		
	Update to 2022-08-30 12:00
This commit is contained in:
		| @@ -13,6 +13,6 @@ | |||||||
|   tags: drbd |   tags: drbd | ||||||
|  |  | ||||||
| - name: Reload systemd | - name: Reload systemd | ||||||
|   systemd: daemon_realod=True |   systemd: daemon_reload=True | ||||||
|   when: drbd_reactor_reload_unit.changed |   when: drbd_reactor_reload_unit.changed | ||||||
|   tags: drbd |   tags: drbd | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
|  |  | ||||||
| - name: Handle prometheus port ports | - name: Handle prometheus port | ||||||
|   iptables_raw: |   iptables_raw: | ||||||
|     name: drbd_reactor_prom_port |     name: drbd_reactor_prom_port | ||||||
|     state: "{{ (drbd_reactor_prom_src_ip | length > 0) | ternary('present','absent') }}" |     state: "{{ (drbd_reactor_prom_src_ip | length > 0) | ternary('present','absent') }}" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
| # Version of linstor-gateway to install | # Version of linstor-gateway to install | ||||||
| lingw_version: 0.13.1 | lingw_version: 0.13.1 | ||||||
| # URL where linstor-gateway will be downloaded | # URL where linstor-gateway will be downloaded | ||||||
| lingw_bin_url: https://github.com/LINBIT/linstor-gateway/releases/download/v{{ linsat_gateway_version }}/linstor-gateway-linux-amd64 | lingw_bin_url: https://github.com/LINBIT/linstor-gateway/releases/download/v{{ lingw_version }}/linstor-gateway-linux-amd64 | ||||||
| # Expected sha256 of the binary | # Expected sha256 of the binary | ||||||
| lingw_bin_sha256: 83d4d13154caeee79a0bec01db4a571cc417301fc001eb0ee9a6210279201934 | lingw_bin_sha256: 83d4d13154caeee79a0bec01db4a571cc417301fc001eb0ee9a6210279201934 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,10 +1,14 @@ | |||||||
| --- | --- | ||||||
|  |  | ||||||
|  | - name: Install packages | ||||||
|  |   package: name={{ lingw_packages }} | ||||||
|  |   tags: drbd | ||||||
|  |  | ||||||
| - name: Install linstor-gateway | - name: Install linstor-gateway | ||||||
|   get_url: |   get_url: | ||||||
|     url: "{{ linsat_gateway_url }}" |     url: "{{ lingw_bin_url }}" | ||||||
|     dest: /usr/local/bin/linstor-gateway |     dest: /usr/local/bin/linstor-gateway | ||||||
|     checksum: sha256:{{ linsat_gateway_sha256 }} |     checksum: sha256:{{ lingw_bin_sha256 }} | ||||||
|     mode: 755 |     mode: 755 | ||||||
|   when: lingw_install_mode != 'none' |   when: lingw_install_mode != 'none' | ||||||
|   tags: drbd |   tags: drbd | ||||||
|   | |||||||
| @@ -14,7 +14,6 @@ | |||||||
|       RestartSec=30 |       RestartSec=30 | ||||||
|       PrivateTmp=yes |       PrivateTmp=yes | ||||||
|       ProtectHome=yes |       ProtectHome=yes | ||||||
|       ProtectSystem=full |  | ||||||
|       SyslogIdentifier=linstor-satellite |       SyslogIdentifier=linstor-satellite | ||||||
|     dest: /etc/systemd/system/linstor-satellite.service.d/99-ansible.conf |     dest: /etc/systemd/system/linstor-satellite.service.d/99-ansible.conf | ||||||
|   notify: restart linstor-satellite |   notify: restart linstor-satellite | ||||||
|   | |||||||
| @@ -1,11 +1,11 @@ | |||||||
| --- | --- | ||||||
|  |  | ||||||
| # Version of Nomad to install | # Version of Nomad to install | ||||||
| nomad_version: 1.3.3 | nomad_version: 1.3.4 | ||||||
| # URL of the archive | # URL of the archive | ||||||
| nomad_archive_url: https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip | nomad_archive_url: https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip | ||||||
| # Expected sha256 of the archive | # Expected sha256 of the archive | ||||||
| nomad_archive_sha256: d908811cebe2a8373e93c4ad3d09af5c706241878ff3f21ee0f182b4ecb571f2 | nomad_archive_sha256: c20d26b411c1df9c9b7a571e3ba6ee900772703211c565224612bfc199473be9 | ||||||
|  |  | ||||||
| # List of plugins to install | # List of plugins to install | ||||||
| nomad_plugins: | nomad_plugins: | ||||||
|   | |||||||
| @@ -8,7 +8,10 @@ | |||||||
|   command: "{{ nomad_root_dir }}/bin/nomad operator snapshot 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: |   args: | ||||||
|     creates: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap" |     creates: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap" | ||||||
|   when: nomad_conf.server.enabled |   when: | ||||||
|  |     - nomad_conf.server.enabled | ||||||
|  |     - nomad_services.ansible_facts.services['nomad.service'] is defined | ||||||
|  |     - nomad_services.ansible_facts.services['nomad.service'].state == 'started' | ||||||
|   environment: |   environment: | ||||||
|     NOMAD_TOKEN: "{{ nomad_mgm_token | default(omit) }}" |     NOMAD_TOKEN: "{{ nomad_mgm_token | default(omit) }}" | ||||||
|   tags: nomad |   tags: nomad | ||||||
|   | |||||||
| @@ -38,4 +38,7 @@ | |||||||
|   set_fact: nomad_enabled_task_drivers={{ nomad_conf.client.task_drivers | dict2items | selectattr('value.enabled', 'equalto', True) | map(attribute='key') }} |   set_fact: nomad_enabled_task_drivers={{ nomad_conf.client.task_drivers | dict2items | selectattr('value.enabled', 'equalto', True) | map(attribute='key') }} | ||||||
|   tags: nomad |   tags: nomad | ||||||
|  |  | ||||||
|  | - name: Check the state of the services | ||||||
|  |   service_facts: | ||||||
|  |   register: nomad_services | ||||||
|  |   tags: nomad | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud