### Install F5 Ansible Collection Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Install the F5 BIG-IP Imperative Collection using the Ansible Galaxy command-line tool. This is the primary method for obtaining the collection. ```bash ansible-galaxy collection install f5networks.f5_modules ``` -------------------------------- ### Install F5 Ansible Collection to a Specific Path Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Install the F5 BIG-IP Imperative Collection to a custom directory using the `-p` option. Ensure your `ansible.cfg` is updated to include this path. ```bash ansible-galaxy collection install f5networks.f5_modules -p ./collections ``` -------------------------------- ### Install F5 Ansible Collection from requirements.yml Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Install Ansible collections defined in a `requirements.yml` file using the `ansible-galaxy` command. This ensures all project dependencies are met. ```bash ansible-galaxy collection install -r requirements.yml ``` -------------------------------- ### Install F5 Ansible Collection via requirements.yml Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Include the F5 BIG-IP Imperative Collection in your `requirements.yml` file for declarative installation. This is useful for managing project dependencies. ```yaml collections: - name: f5networks.f5_modules ``` -------------------------------- ### Install Specific Version of F5 Ansible Collection Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Install a specific version of the F5 BIG-IP Imperative Collection by appending the version number to the collection name. This is useful for maintaining compatibility with specific project requirements. ```bash ansible-galaxy collection install f5networks.f5_modules:==1.0.0 ``` -------------------------------- ### Configure Ansible to Use Custom Collection Path Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Update your `ansible.cfg` file to include custom collection installation paths. This allows Ansible to find collections installed outside the default locations. ```ini collections_paths = ./collections ``` -------------------------------- ### Adding F5 Ansible Modules to EE Requirements Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md This YAML snippet shows how to include the f5networks.f5_modules collection in your Ansible Execution Environment's requirements file. This ensures the collection is installed within the EE. ```yaml --- collections: - name: ansible.netcommon version: ">=2.0.0" - name: f5networks.f5_modules ``` -------------------------------- ### Upgrade F5 Ansible Collection Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md Upgrade the F5 BIG-IP Imperative Collection to the latest available version using the `--upgrade` flag with `ansible-galaxy`. This ensures you have the most recent features and fixes. ```bash ansible-galaxy collection install f5networks.f5_modules --upgrade ``` -------------------------------- ### Using F5 BIG-IP Collection in Ansible Playbook Source: https://github.com/f5networks/f5-ansible-f5modules/blob/main/README.md This snippet demonstrates how to reference and use an F5 BIG-IP module within an Ansible playbook. Ensure the full namespace, collection, and module name are used. ```yaml --- - name: Using F5 BIG-IP Collection hosts: f5 connection: local tasks: - f5networks.f5_modules.bigip_pool: name: my-pool ... ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.