Fix mote/meetbot to be idempotent here instead of changing everything twice..

This commit is contained in:
Kevin Fenzi 2015-06-23 16:40:24 +00:00
parent d29df1e9cc
commit 753eaa05cb
2 changed files with 4 additions and 7 deletions

View file

@ -31,11 +31,6 @@
tags:
- mote
- name: allow apache to run team sync script
file: path=/srv/web/meetbot/teams state=directory recurse=yes owner=apache group=apache mode=0755
tags:
- mote
- name: start mote-updater service
service: name=mote-updater state=started enabled=yes
tags:

View file

@ -19,10 +19,13 @@
- /var/lib/zodbot/logs
- /srv/web
- /srv/web/meetbot
- /srv/web/meetbot/teams
when: env != "staging"
tags: supybot
- name: create teams directory
file: path=/srv/web/meetbot/teams state=directory recurse=yes owner=apache group=apache mode=0755
tags: supybot
- name: creating usrabot log dir
file: path={{ item }} state=directory owner=daemon
with_items:
@ -32,7 +35,6 @@
- /var/lib/ursabot/logs
- /srv/web
- /srv/web/meetbot
- /srv/web/meetbot/teams
when: env == "staging"
tags: supybot