--- - block: - name: Install the opencpu repository apt_repository: repo={{ opencpu_repo }} update_cache=yes - name: Install the opencpu package apt: pkg={{ item }} state={{ opencpu_pkg_state }} with_items: '{{ opencpu_pkgs }}' tags: opencpu when: opencpu_install