2 # Should be running already but this won't hurt
3 - import_tasks: ctdb-start.yml
5 - name: join active directory domain
7 net ads testjoin </dev/null || \
8 timeout 10 net ads join -U "administrator%{{ ad.admin_password }}"
14 when: auth_method == 'winbind'
16 # FIXME: This will be useful to allow version checking to enable
17 # services/event scripts in different ways
20 #- name: get package facts
25 # debug: var=ansible_facts.packages
27 - import_tasks: ctdb-stop.yml
29 - name: configure CTDB to manage smbd and NFS
30 command: ctdb event script enable legacy {{ s }}
37 - name: configure CTDB to manage winbindd
38 command: ctdb event script enable legacy 49.winbind
39 when: auth_method == 'winbind'
41 - import_tasks: ctdb-start.yml