Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
148ff496
Commit
148ff496
authored
Jan 28, 2022
by
Юрий Дегтярёв
Browse files
edit task Add Consul repository
parent
a1f7e353
Pipeline
#35129
failed with stages
in 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible/system_roles/consul/tasks/os/CentOS_7/main.yml
View file @
148ff496
...
...
@@ -73,16 +73,25 @@
# tags:
# - repo
-
name
:
Install yum-utils
yum
:
name
:
yum-utils
state
:
present
update_cache
:
"
True"
allow_downgrade
:
"
True"
#- 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
:
Add Consul repository
shell
:
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
yum_repository
:
name
:
consul
description
:
consul repository
baseurl
:
https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable
enabled
:
"
True"
gpgcheck
:
yes
gpgkey
:
https://rpm.releases.hashicorp.com/gpg
-
name
:
Install Consul
yum
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment