From 547b11ccbd7e34e254de4a5c822d405c8977dbcc Mon Sep 17 00:00:00 2001 From: David Panofsky Date: Wed, 28 Feb 2018 14:11:25 -0500 Subject: [PATCH] make cache_valid_time configurable; vertical formatting --- tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1ff9756..96a8967 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,7 +1,10 @@ --- - name: Install Nessus Agent from repo - package: name={{nessus_agent_package}} + package: + name: "{{nessus_agent_package}}" + update_cache: yes + cache_valid_time: "{{apt_cache_valid_time | default (3600)}}" when: "'.deb' not in nessus_agent_package" - name: Install Nessus Agent from .deb package @@ -26,4 +29,7 @@ notify: restart nessusagent - name: Ensure nessusagent is started - service: name=nessusagent state=started enabled=yes + service: + name: nessusagent + state: started + enabled: yes