Skip to content

Commit

Permalink
fix redis install ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Jul 25, 2024
1 parent f422734 commit 841b7d1
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions roles/redis/tasks/redis.yaml
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

Check failure on line 10 in roles/redis/tasks/redis.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[truthy]

Truthy value should be one of \[false, true]
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

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (service).

Check failure on line 19 in roles/redis/tasks/redis.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

no-free-form

Avoid using free-form when calling module actions. (service)
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

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (template).

Check failure on line 23 in roles/redis/tasks/redis.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

no-free-form

Avoid using free-form when calling module actions. (template)
template: src=templates/redis.conf.j2 dest=/etc/redis/redis.conf owner=root group=root mode=0644
become: true
notify: Restart services redis

0 comments on commit 841b7d1

Please sign in to comment.