blob: dea44fa54efff2ab3c907b265320573f07e747e9 (
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
35
36
37
38
39
40
41
|
---
# Should be running already but this won't hurt
- import_tasks: ctdb-start.yml
- name: join active directory domain
shell: |
net ads testjoin || \
timeout 10 net ads join -U "administrator%{{ ad.admin_password }}"
register: result
until: result.rc == 0
retries: 5
delay: 1
run_once: true
when: auth_method == 'winbind'
# FIXME: This will be useful to allow version checking to enable
# services/event scripts in different ways
# New in Ansible 2.5
#- name: get package facts
# package_facts:
# manager: "auto"
#- name: show them
# debug: var=ansible_facts.packages
- import_tasks: ctdb-stop.yml
- name: configure CTDB to manage smbd and NFS
command: ctdb event script enable legacy {{ s }}
with_list:
- 50.samba
- 60.nfs
loop_control:
loop_var: s
- name: configure CTDB to manage winbindd
command: ctdb event script enable legacy 49.winbind
when: auth_method == 'winbind'
- import_tasks: ctdb-start.yml
|