✨: dynamic inventory with proxmox
Some checks failed
ansible-lint / lint-everything (push) Failing after 1m12s
Some checks failed
ansible-lint / lint-everything (push) Failing after 1m12s
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
update_cache: true
|
||||
notify:
|
||||
- Restart munin-node
|
||||
when: "'webservers' in group_names or 'loadbalancers' in group_names"
|
||||
when: "'webservers' in group_names or 'lbservers' in group_names"
|
||||
|
||||
# for HAProxy servers
|
||||
- name: Add haproxy backend module
|
||||
@@ -51,7 +51,7 @@
|
||||
state: link
|
||||
notify:
|
||||
- Restart munin-node
|
||||
when: "'loadbalancers' in group_names"
|
||||
when: "'lbservers' in group_names"
|
||||
|
||||
# For MariaDB servers
|
||||
- name: Install MariaDB servers
|
||||
|
@@ -34,14 +34,14 @@ ignore_file \.pod$
|
||||
# Set this if the client doesn't report the correct hostname when
|
||||
# telnetting to localhost, port 4949
|
||||
#
|
||||
host_name {{ inventory_hostname }}
|
||||
host_name {{ ansible_host }}
|
||||
|
||||
# A list of addresses that are allowed to connect. This must be a
|
||||
# regular expression, since Net::Server does not understand CIDR-style
|
||||
# network notation unless the perl module Net::CIDR is installed. You
|
||||
# may repeat the allow line as many times as you'd like
|
||||
|
||||
allow ^{{ hostvars['munin.dmz.mateu.be']['ansible_default_ipv4']['address'].split('.')|join('\.') }}
|
||||
allow ^{{ hostvars['munin']['ansible_default_ipv4']['address'].split('.')|join('\.') }}
|
||||
allow ^127\.0\.0\.1$
|
||||
allow ^::1$
|
||||
|
||||
|
Reference in New Issue
Block a user