Use 'present' instead of 'installed'.
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
when: ansible_os_family not in ['Debian', 'RedHat']
- name: Install dependancies
- apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600 # we update the cache just in case...
+ apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600 # we update the cache just in case...
with_items:
- python-pycurl
- ntp
when: ansible_os_family not in ['Debian', 'RedHat']
- name: Install dependancies
- yum: name={{ item }} state=installed
+ yum: name={{ item }} state=present
with_items:
- python-pycurl
- ntp