File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- ce_ansible_version : " <12.0"
3
2
ce_ansible :
4
3
# These are usually set in the _init role using _venv_path, _venv_command and _venv_install_username but can be overridden.
5
4
# venv_path: "/home/{{ ce_provision.username }}/ansible"
6
5
# venv_command: /usr/bin/python3.11 -m venv
7
6
# venv_install_username: ansible # user to become when creating venv
7
+ ansible_version : " <12.0" # also check install.sh script in the repo root and set the version there accordingly.
8
8
upgrade :
9
- enabled : true # create systemd timer to auto-upgrade Ansible
10
- command : " {{ _venv_path }}/bin/python3 -m pip install --upgrade ansible{{ ce_ansible_version }} " # if you set venv_path above then set it here too.
9
+ enabled : false # create systemd timer to auto-upgrade Ansible. Temporary disabled due to ansible 2.19 breaking changes.
10
+ command : " {{ _venv_path }}/bin/python3 -m pip install --upgrade ansible" # if you set venv_path above then set it here too
11
11
on_calendar : " *-*-* 01:30:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events
12
12
# timer_name: upgrade_ansible
13
13
linters :
Original file line number Diff line number Diff line change 60
60
packages :
61
61
- name : pip
62
62
state : latest
63
- - name : " ansible{{ ce_ansible_version }}"
63
+ - name : " ansible{{ ce_ansible.ansible_version }}"
64
64
- name : python-debian
65
65
66
66
- name : Install linters.
86
86
block :
87
87
- name : Build systemd timer variables string.
88
88
ansible.builtin.set_fact :
89
- _timer : " {'{{ ce_ansible.upgrade.timer_name | default(_ce_ansible_timer_name) }}': { timer_command: '{{ ce_ansible.upgrade.command | quote }}'', timer_OnCalendar: '{{ ce_ansible.upgrade.on_calendar }}' }}"
89
+ _timer : " {'{{ ce_ansible.upgrade.timer_name | default(_ce_ansible_timer_name) }}': { timer_command: '{{ ce_ansible.upgrade.command }}', timer_OnCalendar: '{{ ce_ansible.upgrade.on_calendar }}' }}"
90
+
90
91
- name : Turn the timer string into a dictionary.
91
92
ansible.builtin.set_fact :
92
93
_timer : " {{ _timer.splitlines() | map('from_yaml') | list }}"
You can’t perform that action at this time.
0 commit comments