Remove useless legacy files
parent
0af14b193b
commit
b8ad3b8b64
|
@ -1,21 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Thanks to https://servercheck.in/blog/testing-ansible-roles-travis-ci-github
|
|
||||||
|
|
||||||
DIR=$( dirname $0 )
|
|
||||||
INVENTORY_FILE="localhost,"
|
|
||||||
PLAYBOOK="$DIR/travis.yml"
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# Check syntax
|
|
||||||
ansible-playbook -i $INVENTORY_FILE -c local --syntax-check -vv $PLAYBOOK
|
|
||||||
|
|
||||||
# Check role
|
|
||||||
ansible-playbook -i $INVENTORY_FILE -c local -e "{ mariadb_vendor: $VENDOR, mariadb_origin: $ORIGIN }" --sudo -vv $PLAYBOOK
|
|
||||||
|
|
||||||
# Check indempotence
|
|
||||||
ansible-playbook -i $INVENTORY_FILE -c local -e "{ mariadb_vendor: $VENDOR, mariadb_origin: $ORIGIN }" --sudo -vv $PLAYBOOK > idempot.txt
|
|
||||||
grep -q 'changed=0.*failed=0' idempot.txt \
|
|
||||||
&& (echo 'Idempotence test: pass' && exit 0) \
|
|
||||||
|| (echo 'Idempotence test: FAIL' && cat idempot.txt && exit 1)
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: all
|
|
||||||
vars:
|
|
||||||
mariadb_replication_master: true
|
|
||||||
mariadb_bind_address: '{{ ansible_eth0.ipv4.address }}'
|
|
||||||
mariadb_galera_members:
|
|
||||||
- '{{ ansible_eth0.ipv4.address }}'
|
|
||||||
mariadb_galera_primary_node: 'localhost'
|
|
||||||
roles:
|
|
||||||
- ../../
|
|
||||||
post_tasks:
|
|
||||||
- name: TEST | SHELL | Test mysql
|
|
||||||
shell: mysql -e "SHOW DATABASES;"
|
|
||||||
changed_when: false
|
|
Loading…
Reference in New Issue