Procházet zdrojové kódy

Added a lineinfile to make redis bind to all interfaces on Ubuntu machines, just as it does for Debian machines

Tyler Culp před 8 roky
rodič
revize
6187e3ed67
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      tasks/Ubuntu/redis.yml

+ 9 - 0
tasks/Ubuntu/redis.yml

@@ -9,3 +9,12 @@
       name: "{{ redis_pkg_name }}"
       state: "{{ redis_pkg_state }}"
       update_cache: true
+
+  - name: Ensure redis binds to accessible IP
+    lineinfile:
+      dest: /etc/redis/redis.conf
+      regexp: '^bind'
+      line: 'bind 0.0.0.0'
+    notify: restart redis service
+
+  - meta: flush_handlers