This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
LecygneNoir
/
ansible-configz
mirror of
https://github.com/theonlydoo/configz
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
xymon-client: use ansible_nodename instead of ansible_fqdn as it is more relevant on modern system (systemd)
master
victor héry
6 years ago
parent
b50bf49bf0
commit
57964d2b71
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
roles/xymon-client/tasks/client_centos.yml
+1
-1
roles/xymon-client/tasks/client_debian.yml
+ 1
- 1
roles/xymon-client/tasks/client_centos.yml
View File
@ -48,6 +48,6 @@
tags:
-
xymon-client
-
client-configuration
lineinfile
:
name=/etc/sysconfig/xymon-client regexp='^CLIENTHOSTNAME=' line='CLIENTHOSTNAME="{{ansible_
fqdn
}}"'
lineinfile
:
name=/etc/sysconfig/xymon-client regexp='^CLIENTHOSTNAME=' line='CLIENTHOSTNAME="{{ansible_
nodename
}}"'
notify
:
restart xymon-client
when
:
ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' or ansible_distribution == 'Virtuozzo'
+ 1
- 1
roles/xymon-client/tasks/client_debian.yml
View File
@ -58,7 +58,7 @@
tags:
-
xymon-client
-
client-configuration
lineinfile
:
name=/etc/default/xymon-client regexp='^CLIENTHOSTNAME=' line='CLIENTHOSTNAME="{{ansible_
fqdn
}}"'
lineinfile
:
name=/etc/default/xymon-client regexp='^CLIENTHOSTNAME=' line='CLIENTHOSTNAME="{{ansible_
nodename
}}"'
notify
:
restart xymon-client
when
:
ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 8
Write
Preview
Loading…
Cancel
Save