@@ -68,10 +68,10 @@ install:
68
68
script :
69
69
# Test 1
70
70
- >
71
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
71
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
72
72
# Idempotence test
73
73
- >
74
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
74
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
75
75
| grep -q 'changed=0.*failed=0'
76
76
&& (echo 'Idempotence test: pass' && exit 0)
77
77
|| (echo 'Idempotence test: fail' && exit 1)
@@ -81,11 +81,11 @@ script:
81
81
82
82
# Test 2
83
83
- >
84
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
84
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
85
85
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
86
86
# Idempotence test
87
87
- >
88
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
88
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
89
89
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
90
90
| grep -q 'changed=0.*failed=0'
91
91
&& (echo 'Idempotence test: pass' && exit 0)
@@ -96,11 +96,11 @@ script:
96
96
97
97
# Test 3
98
98
- >
99
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
99
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
100
100
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
101
101
# Idempotence test
102
102
- >
103
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
103
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
104
104
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
105
105
| grep -q 'changed=0.*failed=0'
106
106
&& (echo 'Idempotence test: pass' && exit 0)
@@ -111,12 +111,12 @@ script:
111
111
112
112
# Test 4
113
113
- >
114
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
114
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
115
115
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
116
116
-e mongodb_security_authorization='enabled'
117
117
# Idempotence test
118
118
- >
119
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
119
+ ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
120
120
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
121
121
-e mongodb_security_authorization='enabled'
122
122
| grep -q 'changed=0.*failed=0'
0 commit comments