Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ FIREWALL="true"
AWS_SUPPORT="false"
IS_LOCAL="false"
SERVER_HOSTNAME=$(hostname)
ANSIBLE_VERSION="<12"

# Parse options.
parse_options "$@"
Expand Down Expand Up @@ -146,7 +147,7 @@ fi
/usr/bin/echo "-------------------------------------------------"
/usr/bin/su - "$CONTROLLER_USER" -c "/usr/bin/python3 -m venv /home/$CONTROLLER_USER/ce-python"
/usr/bin/su - "$CONTROLLER_USER" -c "/home/$CONTROLLER_USER/ce-python/bin/python3 -m pip install --upgrade pip"
/usr/bin/su - "$CONTROLLER_USER" -c "/home/$CONTROLLER_USER/ce-python/bin/pip install ansible netaddr python-debian"
/usr/bin/su - "$CONTROLLER_USER" -c "/home/$CONTROLLER_USER/ce-python/bin/pip install 'ansible$ANSIBLE_VERSION' netaddr python-debian"
if [ "$AWS_SUPPORT" = "true" ]; then
/usr/bin/su - "$CONTROLLER_USER" -c "/home/$CONTROLLER_USER/ce-python/bin/pip install boto3"
fi
Expand Down
3 changes: 2 additions & 1 deletion roles/debian/ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ ce_ansible:
#venv_path: "/home/{{ ce_provision.username }}/ansible"
#venv_command: /usr/bin/python3.11 -m venv
#venv_install_username: ansible # user to become when creating venv
ansible_version: "<12.0" # also check install.sh script in the repo root and set the version there accordingly.
upgrade:
enabled: true # create systemd timer to auto-upgrade Ansible
enabled: false # create systemd timer to auto-upgrade Ansible. Temporary disabled due to ansible 2.19 breaking changes.
command: "{{ _venv_path }}/bin/python3 -m pip install --upgrade ansible" # if you set venv_path above then set it here too
on_calendar: "*-*-* 01:30:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events
#timer_name: upgrade_ansible
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/ansible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
packages:
- name: pip
state: latest
- name: ansible
- name: "ansible{{ ce_ansible.ansible_version }}"
- name: python-debian

- name: Install linters.
Expand Down
Loading