updated Debian package installation syntax for Ansible v2

pull/1004/head
Simon Weald 2016-10-04 15:04:15 +01:00
parent 30c7fe36d4
commit e160edd881
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
---
- name: install dependencies
apt:
pkg: "{{ item }}"
name: "{{ item }}"
state: present
update_cache: yes
cache_valid_time: 3600
with_items: debian_package_dependencies
with_items: "{{debian_package_dependencies}}"
- name: configure ceph apt repository
include: debian_ceph_repository.yml
@ -13,10 +13,10 @@
- name: install ceph
apt:
pkg: "{{ item }}"
name: "{{ item }}"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
with_items: debian_ceph_packages
with_items: "{{debian_ceph_packages}}"
- name: install ceph-test
apt: