Commit d65e406a authored by Noc User ubuntu-srv-02's avatar Noc User ubuntu-srv-02
Browse files

add task consul for RedHat

parent 3cbf1b6c
Pipeline #35119 failed with stages
in 42 seconds
......@@ -60,3 +60,26 @@
- consul_address!='node_ip'
tags:
- config
- name: Install yum-utils
yum:
name: yum-utils
state: present
update_cache: "True"
allow_downgrade: "True"
- name: Add Consul repository
shell:
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
- name: Install Consul
yum:
name: consul-{{ consul_version_rh }}
state: present
update_cache: "True"
allow_downgrade: "True"
tags:
- requirements
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
......@@ -59,21 +59,20 @@
tags:
- config
- name: Install yum-utils
yum:
name: yum-utils
state: present
update_cache: "True"
allow_downgrade: "True"
- name: Add Consul repository
yum_repository:
name: consul
description: consul repository
baseurl: "https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo"
enabled: "True"
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
tags:
- repo
shell:
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
- name: Install Consul
yum:
name: consul={{ consul_version }}
name: consul-{{ consul_version_rh }}
state: present
update_cache: "True"
allow_downgrade: "True"
......@@ -82,3 +81,4 @@
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
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