[FIX] Wrong location of gunzip

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-09-26 18:06:02 -05:00
parent b2fb2df781
commit de6f723bee

View File

@ -91,12 +91,12 @@
mode: pull
compress: no
src: rsync://backups.bogota.agofer/db/latest_Agofer.gz
dest: /home/odoo/latest_Agofer.gz
dest: /home/odoo/latest_Agofer.sql.gz
- name: Uncompress database backup due to Ansible bug
command:
cmd: /usr/bin/gunzip /home/odoo/latest_Agofer.gz
creates: /home/odoo/latest_Agofer
cmd: gunzip /home/odoo/latest_Agofer.sql.gz
creates: /home/odoo/latest_Agofer.sql
- name: Create database
become: true
@ -111,7 +111,7 @@
postgresql_db:
name: Agofer
state: restore
target: /home/odoo/latest_Agofer.gz
target: /home/odoo/latest_Agofer.sql
- name: Copy SQL script that disconnects Odoo from email and ftp servers
copy: