# vim: set filetype=yaml.ansible : --- - name: Add choose when: - choose_configured is undefined block: - name: Load choose config ansible.builtin.include_tasks: file: config/choose.yml - name: Append choose to pkg_cargo when: - ansible_system == 'Linux' # notify: # - Depend cargo # changed_when: true ansible.builtin.set_fact: pkg_cargo: "{{ pkg_cargo + [choose] }}" - name: Append choose-rust to pkg_sys when: - ansible_system == 'Darwin' ansible.builtin.set_fact: pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"