Skip to content

Commit

Permalink
make redis_user owner of /etc/redis (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
agapov97 authored Jul 25, 2021
1 parent 1a8bb6f commit 82bd954
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
state: directory
mode: 0755

- name: create /etc/redis
file:
path: /etc/redis
state: directory
mode: 0755

- name: check if redis user exists (ignore errors)
command: id {{ redis_user }}
ignore_errors: yes
Expand All @@ -48,6 +42,13 @@
system: yes
when: user_exists is failed

- name: create /etc/redis
file:
path: /etc/redis
state: directory
mode: 0755
owner: "{{ redis_user }}"

- name: create /var/run/redis
file:
path: /var/run/redis
Expand Down

0 comments on commit 82bd954

Please sign in to comment.