forked from infra/ansible
icinga: style fix/cleanup
This commit is contained in:
parent
75c6a18217
commit
46bcaf8320
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable icinga apt-key
|
- name: Enable icinga apt-key
|
||||||
apt_key: url='https://packages.icinga.com/icinga.key'
|
apt_key: url="https://packages.icinga.com/icinga.key"
|
||||||
|
|
||||||
- name: Enable icinga repository
|
- name: Enable icinga repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main'
|
repo: "deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main"
|
||||||
filename: icinga
|
filename: icinga
|
||||||
|
|
||||||
- name: Install icinga
|
- name: Install icinga
|
||||||
@ -73,7 +73,12 @@
|
|||||||
user: name=www-data append=yes groups=icingaweb2
|
user: name=www-data append=yes groups=icingaweb2
|
||||||
|
|
||||||
- name: Ensure certificates are available
|
- name: Ensure certificates are available
|
||||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ icinga_domain }}.key -out /etc/nginx/ssl/{{ icinga_domain }}.crt -days 730 -subj "/CN={{ icinga_domain }}" creates=/etc/nginx/ssl/{{ icinga_domain }}.crt
|
command:
|
||||||
|
cmd: >
|
||||||
|
openssl req -x509 -nodes -newkey rsa:2048
|
||||||
|
-keyout /etc/nginx/ssl/{{ icinga_domain }}.key -out /etc/nginx/ssl/{{ icinga_domain }}.crt
|
||||||
|
-days 730 -subj "/CN={{ icinga_domain }}"
|
||||||
|
creates: /etc/nginx/ssl/{{ icinga_domain }}.crt
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Request nsupdate key for certificate
|
- name: Request nsupdate key for certificate
|
||||||
|
Loading…
Reference in New Issue
Block a user