Skip to content

Commit

Permalink
Merge pull request #8 from singleplatform-eng/configurable_cache_vali…
Browse files Browse the repository at this point in the history
…d_time

make cache_valid_time configurable; vertical formatting
  • Loading branch information
davidpanofsky authored Feb 28, 2018
2 parents d41a7b5 + 547b11c commit 900eeb2
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 900eeb2

Please sign in to comment.