- name: Install imagemagick apt: name={{ item }} state=present with_items: - imagemagick - libmagickcore-dev - libmagickwand-dev