Zack Williams | 2e9da86 | 2020-07-13 21:39:21 -0700 | [diff] [blame] | 1 | --- |
| 2 | # redis tasks/main.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: include OS-specific vars |
| 8 | include_vars: "{{ ansible_os_family }}.yml" |
| 9 | |
| 10 | - name: include OS-specific tasks |
| 11 | include_tasks: "{{ ansible_os_family }}.yml" |
| 12 | |
| 13 | - name: Set Redis listening addresses |
| 14 | lineinfile: |
| 15 | path: "/etc/redis/redis.conf" |
| 16 | line: "bind {{ redis_bind | join(' ') }}" |
| 17 | regex: "^bind .*" |
| 18 | notify: |
| 19 | - "restart-redis" |