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
5c323406
Commit
5c323406
authored
Jun 03, 2021
by
David Kempe
Browse files
fixed up permissions and initialisation
parent
102b7b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
5c323406
...
...
@@ -10,16 +10,29 @@
-
name
:
install powershell requirements for windows boxes
win_psmodule
:
name
:
"
{{
item
}}"
state
:
presen
t
state
:
lates
t
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
:
...
...
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