Skip to content

Commit

Permalink
Ensure file permissions are correct (#222)
Browse files Browse the repository at this point in the history
Fixes permissions when umask is 0027 (#197)
  • Loading branch information
jokimaki authored and DavidWittman committed Aug 22, 2019
1 parent ef7224c commit 21b0b6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
when: redis_travis_ci is not defined

- name: compile redis
command: make -j{{ ansible_processor_cores|default(1) + 1 }}{{ ' 32bit' if redis_make_32bit|bool else '' }}
shell: umask 0022 && make -j{{ ansible_processor_cores|default(1) + 1 }}{{ ' 32bit' if redis_make_32bit|bool else '' }}
args:
chdir: /usr/local/src/redis-{{ redis_version }}
creates: /usr/local/src/redis-{{ redis_version }}/src/redis-server
Expand All @@ -18,11 +18,13 @@
file:
path: "{{ redis_install_dir }}"
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 }}
Expand Down Expand Up @@ -53,7 +55,7 @@
owner: "{{ redis_user }}"

- name: install redis
command: make PREFIX={{ redis_install_dir }} install
shell: umask 0022 && make PREFIX={{ redis_install_dir }} install
args:
chdir: /usr/local/src/redis-{{ redis_version }}
creates: "{{ redis_install_dir }}/bin/redis-server"
Expand Down

0 comments on commit 21b0b6f

Please sign in to comment.