From 56e7777447131e2075df97509cb289889ee5045f Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 20 Oct 2017 17:18:03 +0300 Subject: [PATCH] make recipe idempotent --- tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6c2adcb..fd713ca 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,11 +1,18 @@ --- +- name: update apt-cache + apt: + update_cache: yes + cache_valid_time: 3600 + changed_when: no + tags: + - install + - name: install dependencies apt: name: - curl - unzip state: present - update_cache: yes cache_valid_time: 3600 tags: - install