Skip to content

Commit

Permalink
Fix build on Docker (no network interface)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanXHX committed Jun 29, 2020
1 parent 8dcc528 commit c9323be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---

- hosts: all
pre_tasks:
roles:
- ../../
vars:
redis_bind: '{{ (ansible_all_ipv4_addresses + ["127.0.0.1"]) | join(" ") }}'
redis_bind: '{% if ansible_virtualization_type == "docker" %}{{ ["127.0.0.1", "127.0.0.2"] | join(" ") }}{% else %}{{ (ansible_all_ipv4_addresses + ["127.0.0.1"]) | join(" ") }}{% endif %}'
redis_ulimit: 42000
redis_requirepass: 'my_unsecure_password'
redis_slaveof: "127.0.0.1 7777"
Expand Down

0 comments on commit c9323be

Please sign in to comment.