Skip to content

Commit

Permalink
make cache_valid_time configurable; vertical formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpanofsky committed Feb 28, 2018
1 parent cb21622 commit 547b11c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 547b11c

Please sign in to comment.