mirror of
https://gitea.0xace.cc/ansible-galaxy/consul.git
synced 2024-11-25 06:37:18 +00:00
rename consul_install_repo to consul_install_official_repo for better understanding
This commit is contained in:
parent
2eee7d69d3
commit
bfdf7918fa
@ -3,7 +3,7 @@ consul_config_path: "/etc/consul.d"
|
|||||||
consul_data_path: "/opt/consul"
|
consul_data_path: "/opt/consul"
|
||||||
consul_user: "consul"
|
consul_user: "consul"
|
||||||
consul_group: "consul"
|
consul_group: "consul"
|
||||||
consul_install_repo: true
|
consul_install_official_repo: true
|
||||||
|
|
||||||
consul_cluster_group: "consul"
|
consul_cluster_group: "consul"
|
||||||
consul_server_group: "consul_server"
|
consul_server_group: "consul_server"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
ansible.builtin.apt_key:
|
ansible.builtin.apt_key:
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
keyring: "{{ item.keyring }}"
|
keyring: "{{ item.keyring }}"
|
||||||
when: consul_install_repo
|
when: consul_install_official_repo
|
||||||
loop: "{{ consul_apt_key }}"
|
loop: "{{ consul_apt_key }}"
|
||||||
|
|
||||||
- name: Add Hashicorp repository
|
- name: Add Hashicorp repository
|
||||||
@ -16,7 +16,7 @@
|
|||||||
state: present
|
state: present
|
||||||
filename: "{{ item.filename }}"
|
filename: "{{ item.filename }}"
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: consul_install_repo
|
when: consul_install_official_repo
|
||||||
loop: "{{ consul_apt_repository }}"
|
loop: "{{ consul_apt_repository }}"
|
||||||
|
|
||||||
- name: Gather packages
|
- name: Gather packages
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
gpgkey: https://rpm.releases.hashicorp.com/gpg
|
gpgkey: https://rpm.releases.hashicorp.com/gpg
|
||||||
when: consul_install_repo
|
when: consul_install_official_repo
|
||||||
|
|
||||||
- name: "Install {{ consul_package_name }}-{{ consul_version }} from official repository"
|
- name: "Install {{ consul_package_name }}-{{ consul_version }} from official repository"
|
||||||
dnf:
|
dnf:
|
||||||
@ -18,7 +18,7 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
disablerepo: '*'
|
disablerepo: '*'
|
||||||
register: consul_setup
|
register: consul_setup
|
||||||
when: consul_install_repo
|
when: consul_install_official_repo
|
||||||
|
|
||||||
- name: "Install {{ consul_package_name }}-{{ consul_version }}"
|
- name: "Install {{ consul_package_name }}-{{ consul_version }}"
|
||||||
dnf:
|
dnf:
|
||||||
@ -26,7 +26,7 @@
|
|||||||
state: present
|
state: present
|
||||||
disable_gpg_check: yes
|
disable_gpg_check: yes
|
||||||
register: consul_setup
|
register: consul_setup
|
||||||
when: not consul_install_repo
|
when: not consul_install_official_repo
|
||||||
|
|
||||||
- name: Fix "/etc/consul.d/consul.env"
|
- name: Fix "/etc/consul.d/consul.env"
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user