add debian repo
This commit is contained in:
parent
6ab0094a77
commit
bb17f979ce
@ -20,6 +20,19 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
- name: Add an Apt signing key, uses whichever key is at the URL
|
||||||
|
apt_key:
|
||||||
|
url: "{{ consul_repo_url }}/gpg"
|
||||||
|
state: present
|
||||||
|
when: "ansible_os_family|lower == 'debian'"
|
||||||
|
|
||||||
|
- name: Add Debian/Ubuntu Linux repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb {{ consul_repo_url }} {{ ansible_distribution_release }} main"
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
when: "ansible_os_family|lower == 'debian'"
|
||||||
|
|
||||||
- name: install package
|
- name: install package
|
||||||
package:
|
package:
|
||||||
name: "{{ consul_os_package }}"
|
name: "{{ consul_os_package }}"
|
||||||
|
@ -6,3 +6,8 @@ consul_os_package:
|
|||||||
consul_service_name: consul
|
consul_service_name: consul
|
||||||
|
|
||||||
dnsmasq_package: "dnsmasq"
|
dnsmasq_package: "dnsmasq"
|
||||||
|
|
||||||
|
consul_repo_prerequisites:
|
||||||
|
- gpg
|
||||||
|
|
||||||
|
consul_repo_url: "https://apt.releases.hashicorp.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user