A task I have uses the pip module in conjunction with 'with_items' to install different ansible packages, like so:
- name: install ansible versions pip: name: ansible version: "{{ item }}" extra_args: "--install-option=\"--prefix=/opt/ansible/ansible-{{ item }}\"" state: present with_items: - 2.2.1.0 - 2.3.0.0 - 2.3.1.0 - 2.4.2.0 - 2.4.4.0 Every time we run the playbook Ansible reinstalls the packages even though they are definitely there on the host. Any ideas why? Thanks, Guy -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/65a149b7-4139-4d34-8674-55139f6b8478%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.