Use package module to install distro packages

Consolidate distro package install tasks into a
single task using the package module.

Change-Id: I54c19532b9df8863d3a6fe2cc8ded23f4e147f70
This commit is contained in:
Jesse Pretorius 2017-05-02 12:46:30 +01:00
parent a853b7fea3
commit 272da3a1bf

View File

@ -29,10 +29,12 @@
group: "{{ neutron_system_group_name }}"
- name: Install networking-plumgrid
apt:
package:
name: networking-plumgrid
state: "{{ neutron_package_state }}"
force: yes
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
force: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
register: install_packages
until: install_packages|success
retries: 5