Skip to content

Commit e233c15

Browse files
committed
feat: make ansible 2.x compatible
Merge branch 'master' of https://github.com/zeelax/ansible-hosts into develop closes #4
2 parents 313511b + 8b809c4 commit e233c15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ script:
1111
- echo localhost > inventory
1212
- ln -s ansible-hosts ../franklinkim.hosts
1313
- ansible-playbook --syntax-check -i inventory tests/main.yml
14-
- ansible-playbook -i inventory tests/main.yml --connection=local --sudo -vvvv
14+
- ansible-playbook -i inventory tests/main.yml --connection=local --become -vvvv

tasks/manage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
line: "{{ item.ip }} {{ item.domain }} # ansible"
1515
regexp: "^{{ item.ip }} {{ item.domain }} # ansible"
1616
insertafter: EOF
17-
with_items: hosts
17+
with_items: "{{ hosts }}"

0 commit comments

Comments
 (0)