Skip to content

Commit

Permalink
Lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
supertarto committed Sep 6, 2024
1 parent c3520b1 commit c5b79c8
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@

- block:

- name: Check if GLPI Backup already exists
stat:
path: "{{ glpi_install_path }}/glpi-bck"
register: glpibackup
- name: Check if GLPI Backup already exists
stat:
path: "{{ glpi_install_path }}/glpi-bck"
register: glpibackup

- name: Remove Old GLPI Backup folder before update
ansible.builtin.file:
path: "{{ glpi_install_path }}/glpi-bck"
state: absent
when: glpibackup
- name: Remove Old GLPI Backup folder before update
ansible.builtin.file:
path: "{{ glpi_install_path }}/glpi-bck"
state: absent
when: glpibackup

- name: BackUp GLPI Folder
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi"
dest: "{{ glpi_install_path }}/glpi-bck"
- name: BackUp GLPI Folder
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi"
dest: "{{ glpi_install_path }}/glpi-bck"

- name: Remove GLPI folder before update
ansible.builtin.file:
path: "{{ glpi_install_path }}/glpi"
state: absent
- name: Remove GLPI folder before update
ansible.builtin.file:
path: "{{ glpi_install_path }}/glpi"
state: absent

when: glpi_update and glpiinstalled

Expand All @@ -51,17 +51,17 @@

- block:

- name: Copy files directory from backup to new version
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi-bck/files"
dest: "{{ glpi_install_path }}/glpi/files"
- name: Copy files directory from backup to new version
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi-bck/files"
dest: "{{ glpi_install_path }}/glpi/files"

- name: Copy config directory from backup to new version
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi-bck/config"
dest: "{{ glpi_install_path }}/glpi/config"
- name: Copy config directory from backup to new version
ansible.builtin.copy:
remote_src: true
src: "{{ glpi_install_path }}/glpi-bck/config"
dest: "{{ glpi_install_path }}/glpi/config"

when: glpi_update and glpiinstalled

Expand Down

0 comments on commit c5b79c8

Please sign in to comment.