ansible.plone_server/missing_instance_config: Add instance_config at plone_pack_at plone_backup_at

Steffen Lindner <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: ansible.plone_server
Branch: refs/heads/missing_instance_config
Date: 2017-07-19T14:27:06+02:00
Author: Steffen Lindner (Gomez) <mail-97Gl/[email protected]>
Commit: https://github.com/plone/ansible.plone_server/commit/7c3f728cef2ec2b8b35052c42b65cf09253f91f5

Add instance_config at plone_pack_at plone_backup_at

Files changed:
M HISTORY.txt
M tasks/main.yml

diff --git a/HISTORY.txt b/HISTORY.txt
index 72ad70e..e6e3c54 100644
--- a/HISTORY.txt
+++ b/HISTORY.txt
@@ -1,3 +1,8 @@
+1.2.19 unreleased
+
+- Add missing instance_config for multi instance use (plone_pack_at & plone_backup_at)
+  [gomez]
+
 1.2.18 2017-06-25
 
 - Custom backup paths were not working. Fix that and add some test coverage.
diff --git a/tasks/main.yml b/tasks/main.yml
index abef1d4..c2474dc 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -373,7 +373,7 @@
 # handling the default.
 
 - name: Pack cron job
-  when: plone_pack_at
+  when: instance_config.plone_pack_at
   cron:
     name="{{ instance_config.plone_instance_name }} Plone packing"
     job='cd {{ plone_instance_home }} && bin/zeopack && echo "zeopack""_success for {{ instance_config.plone_instance_name }}"'
@@ -385,7 +385,7 @@
 
 
 - name: Backup cron job
-  when: plone_backup_at
+  when: instance_config.plone_backup_at
   cron:
     name="{{ instance_config.plone_instance_name }} Plone backup"
     job='cd {{ plone_instance_home }} && bin/backup && echo "backup""_success for {{ instance_config.plone_instance_name }}"'



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.