Initial commit of Redis ansible role
Change-Id: I24d9da5660f8481a6e1b423c27d424613321a8bc
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..be272d7
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+# redis tasks/main.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+- name: include OS-specific vars
+ include_vars: "{{ ansible_os_family }}.yml"
+
+- name: include OS-specific tasks
+ include_tasks: "{{ ansible_os_family }}.yml"
+
+- name: Set Redis listening addresses
+ lineinfile:
+ path: "/etc/redis/redis.conf"
+ line: "bind {{ redis_bind | join(' ') }}"
+ regex: "^bind .*"
+ notify:
+ - "restart-redis"