1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- ---
- - name: Install redis server package
- package:
- name: redis-server
- state: present
- - name: Template the redis server configuration
- template:
- src: redis.conf.j2
- dest: /etc/redis/redis.conf
- owner: redis
- group: redis
- mode: 0640
- notify:
- - restart_oss
- - name: Install Memtier Benchmark prereqs
- package:
- name: "{{ item }}"
- state: present
- with_items:
- - build-essential
- - autoconf
- - automake
- - libpcre3-dev
- - libevent-dev
- - pkg-config
- - zlib1g-dev
- - name: Checkout Memtier Benchmark Github repo
- git:
- repo: https://github.com/RedisLabs/memtier_benchmark.git
- dest: /var/tmp/memtier_benchmark
- # TODO: don't run every time
- - name: Build the memtier_benchmark utility
- shell: "cd /var/tmp/memtier_benchmark && autoreconf -ivf && ./configure && make && make install"
- # TODO: don't run every time
- - name: Add Some random data
- shell: "/usr/local/bin/memtier_benchmark -R --key-prefix=mague-"
- - name: Install Ruby Gem for Redis
- package:
- name: ruby-redis
- state: present
- - name: example script
- copy:
- src: redis_example.rb
- dest: /home/ubuntu/redis_example.rb
- owner: ubuntu
- group: ubuntu
- mode: 0755
|