updated tasks so they are only run once
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to cargopkgs
|
||||
- name: Add choose
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||
- choose_configured is undefined
|
||||
block:
|
||||
- name: Load choose config
|
||||
ansible.builtin.include_task:
|
||||
file: config/choose.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
|
||||
- name: Append to cargopkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
|
||||
|
||||
- name: Set choose_configured
|
||||
ansible.builtin.set_fact:
|
||||
choose_configured: true
|
||||
|
||||
Reference in New Issue
Block a user