-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: Install jmespath python module using pip
Very recently on CentOS Stream 8 ansible version got updated to v2.16.3 built with Python 3.12. Due to unavailability of python 3.12 module for jmespath playbook execution is expected to fail. Therefore switch the python module installation from RPMs to pip where it can be versionized. Signed-off-by: Anoop C S <[email protected]>
- Loading branch information
Showing
4 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
--- | ||
- name: Install Python jmespath module | ||
yum: | ||
name: | ||
- python3.11-jmespath | ||
state: latest | ||
block: | ||
- name: Install pip | ||
yum: | ||
name: python3.12-pip | ||
state: latest | ||
|
||
- name: Install jmespath | ||
pip: | ||
executable: pip3.12 | ||
name: jmespath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
--- | ||
- name: Install Python jmespath module | ||
yum: | ||
name: | ||
- python3-jmespath | ||
state: latest | ||
block: | ||
- name: Install pip | ||
yum: | ||
name: python3-pip | ||
state: latest | ||
|
||
- name: Install jmespath | ||
pip: | ||
name: jmespath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters