Browse Source

install the redis python3 pip

Chris Mague 4 years ago
parent
commit
e3506b3f0e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ansible/nodes.yml

+ 5 - 0
ansible/nodes.yml

@@ -25,6 +25,7 @@
       - pkg-config
       - zlib1g-dev
       - libssl-dev
+      - python3-pip
     redis_ports:
       - {"port": 19901, "start-hslot": 0, "end-hslot": 1365}
       - {"port": 19902, "start-hslot": 1366, "end-hslot": 2730}
@@ -73,6 +74,10 @@
         state: present
     - name: Enable RPS
       shell: "echo '3' > /sys/class/net/{{ ansible_default_ipv4.alias}}/queues/rx-0/rps_cpus"
+    - name: Install Redis Python pip
+      pip:
+        name: redis
+        executable: pip3
 
   tasks:
     - name: load vars