On Thu, 12 Feb 2015 08:59 -0800, Alexey Wasilyev <
awas...@qubell.com>
wrote:
Some valid ways to declare this:
- name: install packages
local_action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
with_items:
- lsof
- nmap
- name: install packages
local_action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
with_items: [ lsof, nmap ]
- name: install packages
local_action: >
{{ ansible_pkg_mgr }} name={{ item }} state=latest
with_items: [ lsof, nmap ]
Generally I try to use YAML only and avoid Ansible's syntax (with equal
signs). However, with free-form arguments, it's hard to avoid it. IMHO,
it's too much flexibility and backward compatibility, but that's because
I don't have a "legacy" code base to worry about.
Giovanni