diff --git a/redis/tasks/main.yml b/redis/tasks/main.yml index fd77cb6..1103643 100644 --- a/redis/tasks/main.yml +++ b/redis/tasks/main.yml @@ -4,8 +4,7 @@ apt_repository: repo='{{ redis_ppa_repo }}' update_cache=yes - name: Install the Redis packages - apt: name={{ item }} state={{ redis_pkg_state }} cache_valid_time=1800 - with_items: '{{ redis_server_pkg }}' + apt: name={{ redis_server_pkg }} state={{ redis_pkg_state }} cache_valid_time=1800 - name: Install the Redis configuration template: src={{ item }}.j2 dest=/etc/redis/{{ item }} owner=redis group=redis mode=0440 @@ -29,8 +28,7 @@ service: name=redis-server state=stopped enabled=no - name: Remove the Redis packages - apt: name={{ item }} state=absent - with_items: '{{ redis_server_pkg }}' + apt: name={{ redis_server_pkg }} state=absent - name: Remove the Redis PPA apt_repository: repo='{{ redis_ppa_repo }}' state=absent update_cache=yes