-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
--- | ||
- name: Install Redis | ||
- name: Add Redis PPA | ||
ansible.builtin.apt_repository: | ||
repo: "ppa:redislabs/redis" | ||
state: present | ||
become: true | ||
tasks: | ||
- name: Add Redis PPA | ||
ansible.builtin.apt_repository: | ||
repo: "ppa:redislabs/redis" | ||
state: present | ||
|
||
- name: Update apt cache | ||
ansible.builtin.apt: | ||
update_cache: yes | ||
- name: Update apt cache | ||
ansible.builtin.apt: | ||
update_cache: yes | ||
become: true | ||
|
||
- name: Install specific Redis version | ||
ansible.builtin.apt: | ||
name: "redis-server=7.2*" | ||
state: present | ||
- name: Install specific Redis version | ||
ansible.builtin.apt: | ||
name: "redis-server=7.2*" | ||
state: present | ||
become: true | ||
|
||
- name: Ensure Redis is started | ||
service: name=redis-server state=started enabled=yes | ||
sudo: true | ||
- name: Ensure Redis is started | ||
Check failure on line 19 in roles/redis/tasks/redis.yaml GitHub Actions / Ansible Lintfqcn[action-core]
|
||
service: name=redis-server state=started enabled=yes | ||
become: true | ||
|
||
- name: Ensure Redis Configuration | ||
template: src=templates/redis.conf.j2 dest=/etc/redis/redis.conf owner=root group=root mode=0644 | ||
sudo: true | ||
notify: Restart services redis | ||
- name: Ensure Redis Configuration | ||
Check failure on line 23 in roles/redis/tasks/redis.yaml GitHub Actions / Ansible Lintfqcn[action-core]
|
||
template: src=templates/redis.conf.j2 dest=/etc/redis/redis.conf owner=root group=root mode=0644 | ||
become: true | ||
notify: Restart services redis |