--- # 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