first commit
This commit is contained in:
29
linux_install-checkmk.yml
Normal file
29
linux_install-checkmk.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: run automation for windows
|
||||
gather_facts: yes
|
||||
hosts: all
|
||||
become_method: sudo
|
||||
roles:
|
||||
- role: linux_install-checkmk
|
||||
tasks:
|
||||
- name: Add all hosts running this playbook to the done group
|
||||
ansible.builtin.add_host:
|
||||
name: '{{ item }}.adagility.net'
|
||||
groups: checkmk_hosts
|
||||
loop: "{{ ansible_play_hosts }}"
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Onboard host to checkmk GUI
|
||||
become: false
|
||||
# become_user: root
|
||||
hosts: localhost
|
||||
roles:
|
||||
- role: linux_add-host-to-checkmk
|
||||
tasks:
|
||||
- name:
|
||||
debug:
|
||||
var: item
|
||||
with_inventory_hostnames:
|
||||
- checkmk_hosts
|
||||
Reference in New Issue
Block a user