Skip to content

Commit c73966a

Browse files
committed
Use ansible-playbook without sudo
1 parent b54cc13 commit c73966a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ install:
6868
script:
6969
# Test 1
7070
- >
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}
7272
# Idempotence test
7373
- >
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}
7575
| grep -q 'changed=0.*failed=0'
7676
&& (echo 'Idempotence test: pass' && exit 0)
7777
|| (echo 'Idempotence test: fail' && exit 1)
@@ -81,11 +81,11 @@ script:
8181

8282
# Test 2
8383
- >
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}
8585
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
8686
# Idempotence test
8787
- >
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}
8989
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
9090
| grep -q 'changed=0.*failed=0'
9191
&& (echo 'Idempotence test: pass' && exit 0)
@@ -96,11 +96,11 @@ script:
9696

9797
# Test 3
9898
- >
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}
100100
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
101101
# Idempotence test
102102
- >
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}
104104
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
105105
| grep -q 'changed=0.*failed=0'
106106
&& (echo 'Idempotence test: pass' && exit 0)
@@ -111,12 +111,12 @@ script:
111111

112112
# Test 4
113113
- >
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}
115115
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
116116
-e mongodb_security_authorization='enabled'
117117
# Idempotence test
118118
- >
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}
120120
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
121121
-e mongodb_security_authorization='enabled'
122122
| grep -q 'changed=0.*failed=0'

0 commit comments

Comments
 (0)