Skip to content

Commit b22b697

Browse files
committed
Install OSC from dnf, not pip
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent c1fca3a commit b22b697

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

playbooks/local_os_client.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@
116116
mode: '0755'
117117

118118
- name: Install openstack client locally
119-
ansible.builtin.pip:
119+
become: true
120+
ansible.builtin.package:
120121
name: python-openstackclient
121-
extra_args: "{% if not is_local_virtualenv %} --user {% endif %}"
122122

123123
- name: Create the scripts if it does not exist
124124
ansible.builtin.file:

playbooks/vars/defaults.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ rhos_release: 17.1
33
hostname: standalone
44
clouddomain: shiftstack
55

6-
# is ansible running in a virtualenv on the control node
7-
is_local_virtualenv: "{{ lookup('env', 'VIRTUAL_ENV') | default('', true) }}"
8-
96
# The name of the cloud in *local* clouds.yaml. On the host it will always be
107
# called `standalone`.
118
local_cloudname: standalone

0 commit comments

Comments
 (0)