[FIX] Wrong location of gunzip
This commit is contained in:
parent
b2fb2df781
commit
de6f723bee
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user