123456789101112131415161718192021222324252627282930 |
- ---
- - name: Set fact for ansible version
- set_fact:
- ansible_collection_used: true
- when: "ansible_version.full is version_compare(ansible_base_version, '>')"
- - name: Install netaddr
- pip:
- name: netaddr
- state: present
- executable: pip3
- - name: Install ansible galaxy collection ansible.utils
- command: ansible-galaxy collection install "{{ ipaddr_collection }}"
- changed_when: false
- when: ansible_collection_used
|