Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-icinga2_plugins
Commits
b0b68424
Commit
b0b68424
authored
May 31, 2021
by
David Kempe
Browse files
initial windows support
parent
65359a3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
b0b68424
...
...
@@ -7,6 +7,15 @@
-
"
{{
ansible_os_family
}}.yml"
-
"
main.yml"
-
name
:
install powershell requirements for windows boxes
win_psmodule
:
name
:
"
{{
item
}}"
state
:
present
loop
:
-
icinga-powershell-framework
-
icinga-powershell-plugins
when
:
ansible_os_family == "Windows"
-
name
:
install packages for icinga2 plugins
package
:
name
:
"
{{
item
}}"
...
...
@@ -17,6 +26,7 @@
-
"
{{
icinga2_plugin_check_pve_dependencies
}}"
tags
:
-
repo
when
:
ansible_os_family != "Windows"
-
name
:
install packages for my plugins
package
:
...
...
@@ -29,6 +39,7 @@
-
skip_missing
:
true
tags
:
-
repo
when
:
ansible_os_family != "Windows"
-
name
:
copy private key
copy
:
...
...
@@ -36,7 +47,9 @@
dest
:
"
{{
item.key_destination
}}/{{
item.key_name
}}"
mode
:
0600
loop
:
"
{{
icinga2_plugins_repos
}}"
when
:
item.proto == "ssh"
when
:
-
item.proto == "ssh"
-
ansible_os_family != "Windows"
tags
:
-
repo
...
...
@@ -46,7 +59,9 @@
dest
:
"
{{
item.key_destination
}}/{{
item.key_name
}}.pub"
mode
:
0600
loop
:
"
{{
icinga2_plugins_repos
}}"
when
:
item.proto == "ssh"
when
:
-
item.proto == "ssh"
-
ansible_os_family != "Windows"
tags
:
-
repo
...
...
@@ -58,7 +73,9 @@
key_file
:
"
{{
item.key_destination
}}/{{
item.key_name
}}"
force
:
no
loop
:
"
{{
icinga2_plugins_repos
}}"
when
:
item.proto == "ssh"
when
:
-
item.proto == "ssh"
-
ansible_os_family != "Windows"
tags
:
-
update
-
repo
...
...
@@ -69,7 +86,9 @@
dest
:
"
{{
item.git_destination
}}/"
force
:
no
loop
:
"
{{
icinga2_plugins_repos
}}"
when
:
item.proto == "http"
when
:
-
item.proto == "http"
-
ansible_os_family != "Windows"
tags
:
-
update
-
repo
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment