2 - name: generate CTDB configuration file
5 dest: /etc/ctdb/ctdb.conf
7 - name: generate CTDB public addresses file
9 src: ctdb_public_addresses.j2
10 dest: /etc/ctdb/public_addresses
12 - name: create directory for CTDB recovery lock
14 path: "{{ clusterfs.mountpoint }}/.ctdb"
17 - import_tasks: ctdb-once.yml
20 - name: ensure CTDB is enabled
25 # This stops things failing if the domain has not been joined or similar
26 - name: ensure that CTDB is not managing smbd, winbind and NFS
27 command: ctdb event script disable legacy {{ s }}
35 # Restart just in case ctdbd was running but unhealthy
36 - import_tasks: ctdb-stop.yml
37 - import_tasks: ctdb-start.yml