Skip to content

Commit becb4e7

Browse files
authored
Merge pull request #1675 from stackhpc/smartmon-rl9-fix
fix: do not attempt to install `python3-venv` on non `Ubuntu` systems
2 parents 7413635 + c011884 commit becb4e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
- name: Ensure Python 3, venv, and pip are installed
1717
ansible.builtin.package:
18-
name:
19-
- python3
20-
- python3-venv
21-
- python3-pip
18+
name: >
19+
{{ ['python3', 'python3-pip'] + (['python3-venv'] if ansible_facts['distribution'] == 'Ubuntu' else []) }}
2220
state: present
2321
become: true
2422

0 commit comments

Comments
 (0)