- name: Install embedded packages apt: name='{{ item }}' state=latest with_items: - openocd - can-utils - tmux - picocom - microcom - minicom - libusb-1.0-0 - libusb-1.0-0-dev - tmux - git - htop - bash-completion - git-core - stlink become: true register: apt - name: Run ldconfig shell: ldconfig become: true when: apt.changed - name: Remove PHP5 apt: name='{{ item }}' state=absent with_items: - php5-cli - php5-dev - php-zmq - php5-common - php5-json - php5-mysql become: true