[FIX] Wrong location of gunzip
This commit is contained in:
parent
b2fb2df781
commit
de6f723bee
@ -91,12 +91,12 @@
|
|||||||
mode: pull
|
mode: pull
|
||||||
compress: no
|
compress: no
|
||||||
src: rsync://backups.bogota.agofer/db/latest_Agofer.gz
|
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
|
- name: Uncompress database backup due to Ansible bug
|
||||||
command:
|
command:
|
||||||
cmd: /usr/bin/gunzip /home/odoo/latest_Agofer.gz
|
cmd: gunzip /home/odoo/latest_Agofer.sql.gz
|
||||||
creates: /home/odoo/latest_Agofer
|
creates: /home/odoo/latest_Agofer.sql
|
||||||
|
|
||||||
- name: Create database
|
- name: Create database
|
||||||
become: true
|
become: true
|
||||||
@ -111,7 +111,7 @@
|
|||||||
postgresql_db:
|
postgresql_db:
|
||||||
name: Agofer
|
name: Agofer
|
||||||
state: restore
|
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
|
- name: Copy SQL script that disconnects Odoo from email and ftp servers
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user