--- # This installs mariadb and galera on db nodes - name: Update apt apt: update_cache=yes - name: Install software properties apt: name=software-properties-common state=present - name: Add galera apt repo apt_key: url=hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db apt_repository: repo='deb [arch=amd64,i386] http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu trusty main' - name: Update apt apt: udpate_cache=yes - name: Install mariadb apt: name=mariadb-server state=present