#!/bin/bash [ `id -u` -ne 0 ] && exit 1 test -f /root/.ssh/id_rsa.pub || ssh-keygen -t rsa -b 4096 -N '' -f /root/.ssh/id_rsa ansible-playbook -i inventory/hosts --skip-tags swarm --diff -v swarm-galera.yml