Mailman: service start order

This commit is contained in:
Aurélien Bompard 2015-04-29 16:51:56 +00:00
parent 671910aafe
commit e4cc9bd0fc

View file

@ -257,21 +257,30 @@
# Only run this on mailman01 for now.
# TODO: run it on lists-dev too
#
# The post-update scripts needs memcached to be up (django-compressor will
# store the timestamps there)
- name: start services
service: state=started enabled=yes name=memcached
- name: run the post-update script
command: "{{ mailman_webui_basedir }}/bin/post-update.sh"
when: inventory_hostname.startswith('mailman01')
## Postfix
#- name: create the postfix aliases
# command: su mailman -s /bin/sh -c "mailman3 aliases"
# creates=/var/lib/mailman3/data/postfix_lmtp.db
# Memcached
- name: set the memcached sysconfig file
copy: src=memcached.sysconfig dest=/etc/sysconfig/memcached
notify:
- restart memcached
# Start services
- name: start services
service: state=started enabled=yes name={{ item }}