Commit b0b68424 authored by David Kempe's avatar David Kempe
Browse files

initial windows support

parent 65359a3c
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment