Commit 0b21f1e0 by Maruyama

roles/redis: add become=yes

parent 13f318f5
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
dest: /etc/redis.conf dest: /etc/redis.conf
regexp: "^port" regexp: "^port"
line: "port 0" line: "port 0"
become: yes
- name: enable unix socket - name: enable unix socket
blockinfile: blockinfile:
...@@ -25,16 +26,18 @@ ...@@ -25,16 +26,18 @@
block: | block: |
unixsocket /tmp/redis.sock unixsocket /tmp/redis.sock
unixsocketperm 770 unixsocketperm 770
become: yes
- name: start redis - name: start redis
service: service:
name: redis-server name: redis-server
state: restarted state: restarted
enabled: yes enabled: yes
become: yes
- name: add user redis to group git - name: add user redis to group git
user: user:
name: redis name: redis
groups: git groups: git
append: yes append: yes
become: yes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment