@@ -50,10 +50,10 @@ before_install:
50
50
51
51
script :
52
52
# Test 1
53
- - sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
53
+ - sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
54
54
# Idempotence test
55
55
- >
56
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
56
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
57
57
| grep -q 'changed=0.*failed=0'
58
58
&& (echo 'Idempotence test: pass' && exit 0)
59
59
|| (echo 'Idempotence test: fail' && exit 1)
@@ -63,11 +63,11 @@ script:
63
63
64
64
# Test 2
65
65
- >
66
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
66
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
67
67
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
68
68
# Idempotence test
69
69
- >
70
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
70
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
71
71
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
72
72
| grep -q 'changed=0.*failed=0'
73
73
&& (echo 'Idempotence test: pass' && exit 0)
@@ -78,11 +78,11 @@ script:
78
78
79
79
# Test 3
80
80
- >
81
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
81
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
82
82
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
83
83
# Idempotence test
84
84
- >
85
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
85
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
86
86
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
87
87
| grep -q 'changed=0.*failed=0'
88
88
&& (echo 'Idempotence test: pass' && exit 0)
@@ -93,12 +93,12 @@ script:
93
93
94
94
# Test 4
95
95
- >
96
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
96
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
97
97
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
98
98
-e mongodb_security_authorization='enabled'
99
99
# Idempotence test
100
100
- >
101
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
101
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
102
102
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
103
103
-e mongodb_security_authorization='enabled'
104
104
| grep -q 'changed=0.*failed=0'
0 commit comments