- get_url: url: https://thoughtbot.github.io/rcm/debs/rcm_1.2.2-2_all.deb dest: /tmp/rcm.deb - command: dpkg --skip-same-version -i /tmp/rcm.deb register: dpkg changed_when: "dpkg.stdout.startswith('Selecting')" - name: Ensure that tools are installed with_items: packages apt: pkg: "{{ item }}" state: present cache_valid_time: 86400 update_cache: yes