generated from GamingChaos/ansible-repository-template
Compare commits
1
Commits
a3d4e9b4fa
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13526f928c |
@@ -92,17 +92,16 @@
|
|||||||
hosts: agents
|
hosts: agents
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
checkmk_server: "{{ checkmk_api_url | urlsplit('hostname') }}"
|
checkmk_server: "shion.stuyckv.local"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install new checkmk agent
|
- name: Install new checkmk agent
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
deb: "https://checkmk.stuyckv.com/local/check_mk/agents/check-mk-agent_{{ checkmk_version }}-1_all.deb"
|
deb: "http://{{ checkmk_server }}/local/check_mk/agents/check-mk-agent_{{ checkmk_version }}-1_all.deb"
|
||||||
when: ansible_facts.lsb.id == 'Ubuntu'
|
when: ansible_facts.os_family == 'Debian'
|
||||||
|
|
||||||
# registering again renews the agent certificate
|
# registering again renews the agent certificate
|
||||||
- name: Register agent with the site
|
- name: Register agent with the site
|
||||||
when: ansible_facts.lsb.id == 'Ubuntu'
|
|
||||||
changed_when: true
|
changed_when: true
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
argv:
|
argv:
|
||||||
|
|||||||
Reference in New Issue
Block a user