--- - name: Install/Update default packages (might take some time) apt: name: "{{ item }}" with_items: "{{ evolinux_default_packages }}" - name: Install/Update unauthenticated packages (might take some time) command: "apt-get install -yq --allow-unauthenticated {{ evolinux_unauthenticated_packages | join(' ') }}" register: install_packages changed_when: not (install_packages.stdout | search("0 upgraded") and install_packages.stdout | search("0 newly installed")) - name: is an MTA installed? command: "dpkg -S /usr/sbin/sendmail" register: mta_installed failed_when: False changed_when: False - name: Install lsb-invalid-mta apt: name: lsb-invalid-mta when: mta_installed.rc != 0 - name: Deleting rpcbin and nfs-common apt: name: "{{ item }}" state: absent with_items: - rpcbind - nfs-common when: evolinux_delete_nfs