Skip to content

ansible-101: apt should not use with_items #46

@ioggstream

Description

@ioggstream

I expect

apt to use this syntax


- name: Install a list of packages
  apt:
    name: "{{ packages }}"
  vars:
    packages:
    - foo
    - foo-tools

instead

it uses

      apt: name={{item}} state=present
      with_items:
        - python
        - python-dev

Files

# check with 
find . -name \*.yml -exec grep -C4 -nH apt {} \;

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions