replace more deprecated code.

This commit is contained in:
2026-02-01 14:49:41 +01:00
parent 6b2dd6b0bf
commit a41467f6d4
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@
- name: Restart redis-server
vars:
_daemon: "{{ 'redis' if ansible_distribution == 'CentOS' else 'redis-server' }}"
_daemon: "{{ 'redis' if ansible_facts['distribution'] == 'CentOS' else 'redis-server' }}"
service:
name: "{{ _daemon }}"
state: restarted