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

consul-repo-switch

parent 189bc92e
......@@ -60,3 +60,31 @@
- consul_address!='node_ip'
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: Install Consul
yum:
name: consul
state: present
update_cache: "True"
allow_downgrade: "True"
tags:
- requirements
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
......@@ -31,3 +31,37 @@
- consul_address!='node_ip'
tags:
- config
- name: Add Consul apt key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Install Ubuntu packages
apt:
name: consul
state: present
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
notify:
- restart consul
tags:
- requirements
......@@ -31,3 +31,38 @@
- consul_address!='node_ip'
tags:
- config
- name: Add Consul apt key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Install Ubuntu packages
apt:
name: consul
state: present
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
notify:
- restart consul
tags:
- requirements
......@@ -31,3 +31,38 @@
- consul_address!='node_ip'
tags:
- config
- name: Add Consul apt key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Install Ubuntu packages
apt:
name: consul
state: present
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
notify:
- restart consul
tags:
- requirements
......@@ -58,3 +58,27 @@
- consul_address!='node_ip'
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: Install Consul
yum:
name: consul
state: present
update_cache: "True"
allow_downgrade: "True"
tags:
- requirements
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
......@@ -31,3 +31,38 @@
- consul_address!='node_ip'
tags:
- config
- name: Add Consul apt key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Install Ubuntu packages
apt:
name: consul
state: present
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
notify:
- restart consul
tags:
- requirements
......@@ -43,7 +43,7 @@
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com bionic main"
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
......
......@@ -32,3 +32,37 @@
tags:
- config
- name: Add Consul apt key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Add Consul repo
apt_repository:
repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
state: present
update_cache: "True"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- repo
- name: Install Ubuntu packages
apt:
name: consul
state: present
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
notify:
- restart consul
tags:
- requirements
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