summaryrefslogtreecommitdiffstats
path: root/common.yml
blob: bf666b292eac9bcd5393f6cdbc9fe2b8b720cdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# 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
  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-provider:MX
  gather_facts: False
  tags: slapd,ldap
  roles:
    - common-LDAP

- name: Configure the LDAP provider
  hosts: LDAP-provider
  gather_facts: False
  tags: slapd,ldap
  roles:
    - LDAP-provider