From 4326c709798bda93e042d413293434cfedac82bb Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 20 Apr 2020 11:00:08 +0200 Subject: [PATCH] Update to 2020-04-20 11:00 --- roles/glpi/templates/dump_db.j2 | 2 +- roles/sudo/templates/fws.j2 | 2 +- roles/wordpress/tasks/install.yml | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/glpi/templates/dump_db.j2 b/roles/glpi/templates/dump_db.j2 index a343597..eeba83e 100644 --- a/roles/glpi/templates/dump_db.j2 +++ b/roles/glpi/templates/dump_db.j2 @@ -4,4 +4,4 @@ --password={{ glpi_mysql_pass | quote }} \ --host={{ glpi_mysql_server | quote }} \ --quick --single-transaction \ - --add-drop-table {{ glpi_mysql_db | quote }} | lz4 -c > {{ glpi_root_dir }}/db_dumps/{{ glpi_mysql_db }}.sql.lz4 + --add-drop-table {{ glpi_mysql_db | quote }} | zstd -T0 -c > {{ glpi_root_dir }}/db_dumps/{{ glpi_mysql_db }}.sql.zstd diff --git a/roles/sudo/templates/fws.j2 b/roles/sudo/templates/fws.j2 index 56fc190..295b783 100644 --- a/roles/sudo/templates/fws.j2 +++ b/roles/sudo/templates/fws.j2 @@ -1,3 +1,3 @@ {% for group in sudo_admin_groups %} -%{{ group }} ALL=(root) ALL +%{{ group }} ALL=(ALL) ALL {% endfor %} diff --git a/roles/wordpress/tasks/install.yml b/roles/wordpress/tasks/install.yml index 4fce4f4..8f4c14e 100644 --- a/roles/wordpress/tasks/install.yml +++ b/roles/wordpress/tasks/install.yml @@ -69,3 +69,10 @@ command: "{{ wp_root_dir }}/perms.sh" when: wp_install_mode != 'none' or wp_perms_script.changed tags: wp + +- name: Deploy pre/post backup hooks + template: src={{ item }}-backup.sh.j2 dest=/etc/backup/{{ item }}.d/wordpress_{{ wp_id }} mode=750 + loop: + - pre + - post + tags: wp