ce-provision

Ansible Galaxy

Installs Ansible collections and roles with Ansible Galaxy.

Default variables

---
ansible_galaxy:
  # Usually set in the _init role using _venv_path but can be overridden.
  #venv_path: "/home/controller/ce-python"

  username: controller
  # To use the desired ansible.cfg from the working directory.
  working_dir: "/home/{{ _ce_provision_username }}/ce-provision"
  # File containing default roles and/or collections to install via Ansible Galaxy.
  # Roles will be installed to the first path specified under roles_path in your ansible.cfg file.
  # Collections will be installed to collections_path in your ansible.cfg file.
  galaxy_requirements_file: "/home/{{ _ce_provision_username }}/ce-provision/config/files/galaxy-requirements.yml"
  extra_params: --force # extra params to pass to ansible-galaxy, e.g. -p /path/to/install to override install location above
  upgrade_galaxy:
    enabled: true
    name: example # should be unique per job, per server
    on_calendar: "Mon *-*-* 04:00:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events