36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
- name: install icinga web php libraries required by businessprocess
|
|
ansible.builtin.apt:
|
|
name:
|
|
- icinga-php-library
|
|
- icinga-php-thirdparty
|
|
state: present
|
|
update_cache: true
|
|
when: life_noc_businessprocess_enabled | bool
|
|
|
|
- name: install businessprocess module from git
|
|
ansible.builtin.git:
|
|
repo: "{{ life_noc_businessprocess_repo }}"
|
|
dest: "{{ life_noc_businessprocess_module_dir }}"
|
|
version: "{{ life_noc_businessprocess_version }}"
|
|
force: true
|
|
when: life_noc_businessprocess_enabled | bool
|
|
notify: restart apache2
|
|
|
|
- name: ensure businessprocess config directories exist
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: root
|
|
group: icingaweb2
|
|
mode: "2770"
|
|
loop:
|
|
- /etc/icingaweb2/modules/businessprocess
|
|
- /etc/icingaweb2/modules/businessprocess/processes
|
|
when: life_noc_businessprocess_enabled | bool
|
|
|
|
- name: enable businessprocess module
|
|
ansible.builtin.command: icingacli module enable businessprocess
|
|
args:
|
|
creates: /etc/icingaweb2/enabledModules/businessprocess
|
|
when: life_noc_businessprocess_enabled | bool
|
|
notify: restart apache2
|