Skip to content

ansible-101: apt should not use with_items #46

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 {} \;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions