devops - How do I check for the existence of a conda package before installing in ansible? -
in ansible playbook doing install pillow (using conda):
- name: install pillow shell: conda list | grep -q -i pillow || conda install --yes -c conda-forge pillow
two questions:
- why fail idempotence test ?
- what better way of doing ?
i don't know enough conda know pillow installed to, this:
- name: install pillow shell: conda list | grep -q -i pillow || conda install --yes -c conda-forge pillow args: creates: /path/to/pillow/binary
Comments
Post a Comment