mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-03 00:03:05 +02:00
111
This commit is contained in:
@ -59,7 +59,17 @@
|
||||
path: /etc/zabbix/zabbix_agent2.conf
|
||||
regexp: "^Hostname=.*"
|
||||
line: "Hostname={{ansible_hostname}}"
|
||||
|
||||
- name: Reconfigure zabbix-agent2 hostname
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/zabbix/zabbix_agent2.conf
|
||||
regexp: "^UserParameter=.*"
|
||||
insertafter: '^# UserParameter='
|
||||
line: "UserParameter=system.temperature,vcgencmd measure_temp"
|
||||
- name: Add the user 'james' with a bash shell, appending the group 'admins' and 'developers' to the user's groups
|
||||
ansible.builtin.user:
|
||||
name: zabbix
|
||||
groups: video
|
||||
append: yes
|
||||
- name: Restart zabbix-agent2 service
|
||||
ansible.builtin.service:
|
||||
name: zabbix-agent2.service
|
||||
|
Reference in New Issue
Block a user