Commit 5c323406 authored by David Kempe's avatar David Kempe
Browse files

fixed up permissions and initialisation

parent 102b7b85
......@@ -10,16 +10,29 @@
- name: install powershell requirements for windows boxes
win_psmodule:
name: "{{ item }}"
state: present
state: latest
loop:
- icinga-powershell-framework
- icinga-powershell-plugins
when: ansible_os_family == "Windows"
- name: Run Icinga powershell for one-time
win_powershell:
script: |
echo "Use-Icinga"
win_shell: |
Use-Icinga
when: ansible_os_family == "Windows"
- name: sets the service to run as the system user
win_shell: |
Use-Icinga
Set-IcingaAgentServiceUser -User 'NT AUTHORITY\SYSTEM' -SetPermission;
when: ansible_os_family == "Windows"
- name: restart the icinga service
win_service:
name: Icinga 2
state: restarted
username: LocalSystem
when: ansible_os_family == "Windows"
- name: install packages for icinga2 plugins
package:
......
Supports Markdown
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