|
|
@ -21,36 +21,44 @@ |
|
|
|
src: "{{ itop_root_dir }}/tmp/iTop-{{ itop_version }}-{{ itop_build }}.zip" |
|
|
|
src: "{{ itop_root_dir }}/tmp/iTop-{{ itop_version }}-{{ itop_build }}.zip" |
|
|
|
dest: "{{ itop_root_dir }}/tmp" |
|
|
|
dest: "{{ itop_root_dir }}/tmp" |
|
|
|
remote_src: yes |
|
|
|
remote_src: yes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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: Move files to the correct directory |
|
|
|
- name: Install new version of iTop |
|
|
|
synchronize: |
|
|
|
synchronize: |
|
|
|
src: "{{ itop_root_dir }}/tmp/web/" |
|
|
|
src: "{{ itop_root_dir }}/tmp/web/" |
|
|
|
dest: "{{ itop_root_dir }}/web/" |
|
|
|
dest: "{{ itop_root_dir }}/web/" |
|
|
|
recursive: True |
|
|
|
recursive: True |
|
|
|
delete: True |
|
|
|
|
|
|
|
rsync_opts: |
|
|
|
|
|
|
|
- '--exclude=data' |
|
|
|
|
|
|
|
- '--exclude=log' |
|
|
|
|
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
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 |
|
|
|
tags: itop |
|
|
|
|
|
|
|
|
|
|
|
- name: Create directories |
|
|
|
- name: Ensure env-production directories exist |
|
|
|
file: src={{ itop_root_dir }}/data/{{ item }} dest={{ itop_root_dir }}/web/{{ item }} state=link force=True |
|
|
|
file: path={{ itop_root_dir }}/web/{{ item }} state=directory |
|
|
|
loop: |
|
|
|
loop: |
|
|
|
- log |
|
|
|
|
|
|
|
- data |
|
|
|
|
|
|
|
- conf |
|
|
|
|
|
|
|
- env-production |
|
|
|
- env-production |
|
|
|
- env-production-build |
|
|
|
- env-production-build |
|
|
|
tags: itop |
|
|
|
tags: itop |
|
|
|