aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/freeipa.yml
blob: ede053b4c284d83190e6f024dbccc987c680b1c0 (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
- name: configure freeipa master
  hosts: freeipa_master
  tags: freeipa
  roles:
    - role: common
      tags: common

    - role: freeipa_server

    - role: archive_job
      archive_name: ipa
      archive_on_calendar: 'Sat *-*-* 02:00:00'
      archive_shell: >-
        ipa-backup &&
        find {{ freeipa_backup_dir | quote }} -mindepth 1 -maxdepth 1 -type d
        -exec cp --preserve=timestamps -vr {} . \;
        -exec rm -vrf {} \; &&
        find . -mindepth 1 -type d -exec chmod -v 770 {} +

      tags: archive

- name: configure freeipa replicas
  hosts: freeipa_servers:!freeipa_master
  tags: freeipa
  roles:
    - freeipa_server