aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/tasks/fix_pip_version.yml
blob: 6ec8425bfc2519ada644487b24bd57763c922c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# #############################################################################
# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
# #############################################################################
---
- name: copy the repo_fix_andas.yml
  template:
    src: repo_fix_pandas.yml
    dest: /etc/ansible/roles/repo_build/tasks/repo_fix_pandas.yml

- name: fix the python-ldap version
  lineinfile:
    dest: /etc/ansible/roles/os_keystone/defaults/main.yml
    regexp: '^  - python-ldap'
    line: '  - python-ldap==2.5.2'

- name: add pbr in gnocchi requires pip packages
  lineinfile:
    dest: /etc/ansible/roles/repo_build/defaults/main.yml
    insertafter: "repo_pip_packages:"
    line: '  - pbr'

- name: create user config file to control pip version
  copy:
    content: |
      pip_packages:
        - pip==9.0.1
    dest: /etc/openstack_deploy/user_fixpip.yml