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

edit task add Consul repository in os/CentOS_7/main.yml

parent c8bd6ffe
Pipeline #35082 failed with stages
in 19 minutes and 27 seconds
......@@ -61,17 +61,22 @@
tags:
- config
#- 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
- name: Add Consul repository
yum_repository:
name: consul
description: consul repository
baseurl: https://rpm.releases.hashicorp.com/RHEL
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
args:
creates: /etc/yum.repos.d/centos_o.repo
- name: Install Consul
yum:
......
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