Commit 0f59314e authored by YuriyDegtyarev's avatar YuriyDegtyarev
Browse files

fix install task

parent d1209320
Pipeline #35559 failed with stages
in 10 minutes and 40 seconds
......@@ -10,11 +10,11 @@ consul_architecture: "{{ consul_architecture_map[ansible_architecture] }}"
consul_os: "{{ ansible_system|lower }}"
consul_pkg: "consul_{{ consul_version }}_{{ consul_os }}_{{ consul_architecture }}.zip"
#consul_zip_url: "https://releases.hashicorp.com/consul/{{ consul_version }}/{{ consul_pkg }}"
consul_zip_url: "https://github.com/hashicorp/consul/archive/refs/tags/v{{ consul_version }}.zip"
consul_checksum_file_url: "https://github.com/hashicorp/consul/tree/{{ consul_version }}/consul_{{ consul_version }}_SHA256SUMS"
consul_zip_url: "https://releases.comcloud.xyz/consul/{{ consul_version }}/{{ consul_pkg }}"
consul_checksum_file_url: "https://releases.comcloud.xyz/consul/{{ consul_version }}/consul_{{ consul_version }}_SHA256SUMS"
consul_temp_file: "{{ tower_dist_dir }}/{{ consul_pkg }}"
consul_temp_unarchive: "/tmp/consul-{{ consul_version }}"
#consul_temp_file_checksum: "{{ tower_dist_dir }}/{{ consul_version }}_SHA256SUMS"
consul_temp_unarchive: "/tmp/consul_{{ consul_version }}"
consul_temp_file_checksum: "{{ tower_dist_dir }}/{{ consul_version }}_SHA256SUMS"
python_consul_version: 1.1.0
......
---
#- name: Get Consul package checksum file
# get_url:
# url: "{{ consul_checksum_file_url }}"
# dest: "{{ consul_temp_file_checksum }}"
# validate_certs: "True"
# delegate_to: 127.0.0.1
# become: "False"
# run_once: "True"
# environment:
# https_proxy: "{{ http_proxy }}"
- name: Get Consul package checksum file
get_url:
url: "{{ consul_checksum_file_url }}"
dest: "{{ consul_temp_file_checksum }}"
validate_certs: "True"
delegate_to: 127.0.0.1
become: "False"
run_once: "True"
environment:
https_proxy: "{{ http_proxy }}"
#- name: Get Consul package checksum
# command: "grep {{ consul_pkg }} {{ consul_temp_file_checksum }}"
# register: consul_sha256
# check_mode: "False"
# delegate_to: 127.0.0.1
# become: "False"
# run_once: "True"
# changed_when: false
- name: Get Consul package checksum
command: "grep {{ consul_pkg }} {{ consul_temp_file_checksum }}"
register: consul_sha256
check_mode: "False"
delegate_to: 127.0.0.1
become: "False"
run_once: "True"
changed_when: false
- name: Download Consul
get_url:
url: "{{ consul_zip_url }}"
dest: "{{ consul_temp_file }}"
#checksum: "sha256:{{ consul_sha256.stdout.split(' ')|first }}"
checksum: "sha256:{{ consul_sha256.stdout.split(' ')|first }}"
timeout: 42
validate_certs: "True"
delegate_to: 127.0.0.1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment