Update apt cache if necessary.

This commit is contained in:
Jeff Geerling 2014-10-10 09:41:19 -05:00
parent 034bdb7949
commit 4da5f52668

View file

@ -1,4 +1,7 @@
---
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=86400
- name: Ensure Apache is installed.
apt: "name={{ item }} state=installed"
with_items: apache_packages