ans2dev.general install_dep role

The install_dep role was created to install the Python dependencies of all modules in the collection on the control node localhost.

Its use is optional, and the dependencies can be installed however you prefer.

The role install all dependencies in requirements.txt file:

  • requests

  • kaleido

  • plotly

  • openpyxl

Role requirements

Usage

- name: Install Dependencies on CN
  hosts: all
  gather_facts: no
  roles:
    - role: ans2dev.general.install_dep

You can olso install in pre_tasks with become: false

- name: Install Dependencies on CN
  hosts: all
  gather_facts: no

  pre_tasks:

    - name: install dependencies
      block:
        - include_role:
            name: ans2dev.general.install_dep
      become: false