Compare commits
2 Commits
4e06ed01aa
...
a41467f6d4
| Author | SHA1 | Date | |
|---|---|---|---|
| a41467f6d4 | |||
| 6b2dd6b0bf |
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
- name: (redis-server.yml) Set var '_redis_conf'
|
||||
set_fact:
|
||||
_redis_conf: "{{ '/etc/redis.conf' if ansible_distribution == 'CentOS' else '/etc/redis/redis.conf' }}"
|
||||
_redis_conf: "{{ '/etc/redis.conf' if ansible_facts['distribution'] == 'CentOS' else '/etc/redis/redis.conf' }}"
|
||||
|
||||
- name: (redis-server.yml) update
|
||||
apt:
|
||||
@@ -54,7 +54,7 @@
|
||||
state: latest
|
||||
update_cache: yes
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_facts["os_family"] == "RedHat"
|
||||
- ansible_distribution == "CentOS" or ansible_distribution == "Fedora"
|
||||
tags:
|
||||
- redis-server
|
||||
|
||||
@@ -4,7 +4,6 @@ URIs: {{ debian_mirror }}
|
||||
Suites: {{ target_release }} {{ target_release }}-updates
|
||||
Components: {{ components }}
|
||||
Signed-By: default
|
||||
EOF
|
||||
# Verwaltet via Ansible - Debian Basis & Updates für {{ target_release }}
|
||||
Types: deb deb-src
|
||||
URIs: {{ debian_mirror }}
|
||||
|
||||
Reference in New Issue
Block a user