You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
953 B
40 lines
953 B
4 years ago
|
---
|
||
|
|
||
|
- name: Install needed tools
|
||
|
yum:
|
||
|
name:
|
||
|
- tar
|
||
|
- mariadb
|
||
|
- acl
|
||
|
tags: itop
|
||
|
|
||
|
- when: itop_install_mode != 'none'
|
||
|
block:
|
||
|
- name: Download iTop
|
||
|
get_url:
|
||
|
url: "{{ itop_archive_url }}"
|
||
|
dest: "{{ itop_root_dir }}/tmp/"
|
||
|
checksum: "sha1:{{ itop_archive_sha1 }}"
|
||
|
|
||
|
- name: Extract iTop archive
|
||
|
unarchive:
|
||
|
src: "{{ itop_root_dir }}/tmp/iTop-{{ itop_version }}-{{ itop_build }}.zip"
|
||
|
dest: "{{ itop_root_dir }}/tmp"
|
||
|
remote_src: yes
|
||
|
|
||
|
- name: Move files to the correct directory
|
||
|
synchronize:
|
||
|
src: "{{ itop_root_dir }}/tmp/web/"
|
||
|
dest: "{{ itop_root_dir }}/web/"
|
||
|
recursive: True
|
||
|
delete: True
|
||
|
delegate_to: "{{ inventory_hostname }}"
|
||
|
tags: itop
|
||
|
|
||
|
- name: Install backup hooks
|
||
|
template: src={{ item }}-backup.sh.j2 dest=/etc/backup/{{ item }}.d/itop_{{ itop_id }} mode=700
|
||
|
loop:
|
||
|
- pre
|
||
|
- post
|
||
|
tags: itop
|