File tree 3 files changed +27
-0
lines changed
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ icinga2_yum:
25
25
26
26
icinga2_main_conf : " /etc/icinga2/icinga2.conf"
27
27
icinga2_conf_d : " /etc/icinga2/conf.d"
28
+
29
+ icinga2_enable_api : false
30
+ icinga2_master_zone : localdomain
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Enable Icinga2 API
3
+ command : >
4
+ icinga2 node setup
5
+ --master
6
+ --accept-config
7
+ args :
8
+ creates : " /etc/icinga2/pki/{{ icinga2_master_zone }}.crt"
9
+ notify :
10
+ restart icinga2
11
+ # --zone arg The name of the local zone
12
+ # --master_host arg The name of the master host for auto-signing the csr;
13
+ # syntax: host[,port]
14
+ # --endpoint arg Connect to remote endpoint; syntax: cn[,host,port]
15
+ # --listen arg Listen on host,port
16
+ # --ticket arg Generated ticket number for this request
17
+ # --trustedcert arg Trusted master certificate file
18
+ # --cn arg The certificate's common name
19
+ # --accept-config Accept config from master
20
+ # --accept-commands Accept commands from master
21
+ # --master Use setup for a master instance
Original file line number Diff line number Diff line change 16
16
- include : icinga2_configure.yml
17
17
tags :
18
18
- icinga2_configure
19
+
20
+ - include : icinga2_enable_api.yml
21
+ when : icinga2_enable_api
You can’t perform that action at this time.
0 commit comments