|
|
|
@ -22,35 +22,43 @@ |
|
|
|
|
dest: "{{ itop_root_dir }}/tmp" |
|
|
|
|
remote_src: yes |
|
|
|
|
|
|
|
|
|
- name: Move files to the correct directory |
|
|
|
|
- name: Remove previous install |
|
|
|
|
file: path={{ itop_root_dir }}/web/{{ item }} state=absent |
|
|
|
|
loop: |
|
|
|
|
- addons |
|
|
|
|
- datamodels |
|
|
|
|
- images |
|
|
|
|
- lib |
|
|
|
|
- manifest.xml |
|
|
|
|
- portal |
|
|
|
|
- application |
|
|
|
|
- core |
|
|
|
|
- dictionnaries |
|
|
|
|
- env-test |
|
|
|
|
- index.php |
|
|
|
|
- navigator |
|
|
|
|
- setup |
|
|
|
|
- webservices |
|
|
|
|
- approot.inc.php |
|
|
|
|
- css |
|
|
|
|
- js |
|
|
|
|
- pages |
|
|
|
|
- synchro |
|
|
|
|
- sources |
|
|
|
|
- documentation |
|
|
|
|
|
|
|
|
|
- name: Install new version of iTop |
|
|
|
|
synchronize: |
|
|
|
|
src: "{{ itop_root_dir }}/tmp/web/" |
|
|
|
|
dest: "{{ itop_root_dir }}/web/" |
|
|
|
|
recursive: True |
|
|
|
|
delete: True |
|
|
|
|
rsync_opts: |
|
|
|
|
- '--exclude=data' |
|
|
|
|
- '--exclude=log' |
|
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
|
|
|
|
|
|
- name: Sync data and log dir |
|
|
|
|
synchronize: |
|
|
|
|
src: "{{ itop_root_dir }}/tmp/web/{{ item }}/" |
|
|
|
|
dest: "{{ itop_root_dir }}/data/{{ item }}/" |
|
|
|
|
recursive: True |
|
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
|
loop: |
|
|
|
|
- data |
|
|
|
|
- log |
|
|
|
|
|
|
|
|
|
tags: itop |
|
|
|
|
|
|
|
|
|
- name: Create directories |
|
|
|
|
file: src={{ itop_root_dir }}/data/{{ item }} dest={{ itop_root_dir }}/web/{{ item }} state=link force=True |
|
|
|
|
- name: Ensure env-production directories exist |
|
|
|
|
file: path={{ itop_root_dir }}/web/{{ item }} state=directory |
|
|
|
|
loop: |
|
|
|
|
- log |
|
|
|
|
- data |
|
|
|
|
- conf |
|
|
|
|
- env-production |
|
|
|
|
- env-production-build |
|
|
|
|
tags: itop |
|
|
|
|