diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-11-27 01:26:36 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:57 +0200 |
commit | 3d8b0ac104dee68b47d9a4d2ef622e7f1acdd7a4 (patch) | |
tree | 3de7324399fdc31ee6f946ffddc613d7742fa3d0 /common.yml | |
parent | a03f59d589e65366fb0194534cb6aa2a36176bc4 (diff) |
Reorganization.
Diffstat (limited to 'common.yml')
-rw-r--r-- | common.yml | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -1,7 +1,27 @@ --- +# XXX: This organization is unfortunate. As of Ansible 1.4, roles are +# applied playbook by playbook and not globally for the whole inventory; +# therefore if two playbooks are given the role 'common', the tasks +# defined in 'common' would be run twice. +# The quickfix to ensure that plays are role-disjoint is to create a +# separate play for each role. Of course the downside is that we loose +# (most of) the advantage of roles... + - name: Common tasks hosts: all - vars_files: - - vars.yml roles: - common + +- name: Common SQL tasks + hosts: MDA:webmail:backup + gather_facts: False + tags: mysql,sql + roles: + - common-SQL + +- name: Common LDAP tasks + hosts: MDA:MSA:lists:LDAP-producer:MX + gather_facts: False + tags: slapd,ldap + roles: + - common-LDAP |