Default ansible to version 10.x
Ansible 9 EOL is in May 2025. Yep, a couple of weeks to go. Using interpreter auto discovery (default) as ansible_python_interpreter behavior has changed causing mayhem, for example see https://github.com/ansible/ansible/issues/83476 Depends-On: Ie03307aac1dffc5cf397a2513c2c44d403a2d2b7 Change-Id: Ia939bb5da97981e1d5ce3e29056fed884f29fc45 Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
gather_facts: yes
|
||||
vars:
|
||||
bifrost_venv_dir: "{{ lookup('env', 'VENV') or '/opt/stack/bifrost' }}"
|
||||
ansible_python_interpreter: "/usr/bin/env python3"
|
||||
pre_tasks:
|
||||
- name: install pip (and venv) to system
|
||||
package:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
# coding: utf-8 -*-
|
||||
|
||||
# (c) 2015, Hewlett-Packard Development Company, L.P.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
# (c) 2015, Hewlett-Packard Development Company, L.P.
|
||||
#
|
||||
# This module is free software: you can redistribute it and/or modify
|
||||
|
4
releasenotes/notes/ansible10-c1423fcbaa2df981.yaml
Normal file
4
releasenotes/notes/ansible10-c1423fcbaa2df981.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The default supported version of Ansible is now 10.x .
|
@@ -6,7 +6,7 @@ set -euo pipefail
|
||||
# NOTE(pas-ha) the above exports some useful variables like
|
||||
# $PYTHON , $PIP and $VENV depending on venv install or not
|
||||
|
||||
DEFAULT_PIP_ANSIBLE='>=9,<10'
|
||||
DEFAULT_PIP_ANSIBLE='>=10,<11'
|
||||
if ! python3 -c "import sys; assert sys.version_info >= (3, 10)" 2> /dev/null; then
|
||||
DEFAULT_PIP_ANSIBLE='>=8,<9'
|
||||
fi
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (c) 2017 Mirantis Inc
|
||||
#
|
||||
|
6
tox.ini
6
tox.ini
@@ -79,8 +79,8 @@ filename = *.py
|
||||
[testenv:linters]
|
||||
allowlist_externals = bash
|
||||
deps =
|
||||
ansible>=9,<10
|
||||
ansible-lint>=24,<25
|
||||
ansible>=10,<11
|
||||
ansible-lint>=25,<26
|
||||
commands =
|
||||
bash tools/ansible-lint.sh
|
||||
|
||||
@@ -91,4 +91,4 @@ deps = codespell
|
||||
# note(JayF): {posargs} lets us run `tox -ecodespell -- -w` to get codespell
|
||||
# to correct spelling issues in our code it's aware of.
|
||||
commands =
|
||||
codespell {posargs}
|
||||
codespell {posargs}
|
||||
|
Reference in New Issue
Block a user