- name: Include OS-specific tasks include_tasks: "{{ item }}" vars: params: files: "{{ distro_lookup_path }}" loop: "{{ query('first_found', params, errors='ignore') }}" - name: Disable the puppet service service: name: puppet enabled: no state: stopped failed_when: false - name: Disable the mcollective service service: name: mcollective enabled: no state: stopped failed_when: false