Sha256: 4b48529d2ecc0bb5cee37df49c35938a7e35b3ce72dab9951b8d4ae6a88562bc

Contents?: true

Size: 912 Bytes

Versions: 2

Compression:

Stored size: 912 Bytes

Contents

---
  - name: Add an Apt signing key for redis repo
    ansible.builtin.apt_key:
      url: https://packages.redis.io/gpg
      state: present

  - name: Add redis repository into sources list
    ansible.builtin.apt_repository:
      repo: deb https://packages.redis.io/deb {{ ansible_distribution_release }} main
      state: present
    register: redis_apt_repo

  - name: Purge distro redis package
    apt:
      name: redis-server
      state: absent
      purge: true
    when: redis_apt_repo.changed

  - name: Install Redis from official repo
    become: true
    apt:
      name: redis-server
      state: latest
      update_cache: true

  - name: Set bind IP
    become: true
    lineinfile:
      name: /etc/redis/redis.conf
      regexp: '^bind '
      line: 'bind {{redis_bind}}'
      state: present

  - name: restart redis
    become: true
    systemd:
      name: redis
      state: restarted

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
subspace-3.0.2 ansible/roles/redis/tasks/main.yml
subspace-3.0.0 ansible/roles/redis/tasks/main.yml