diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2018-03-22 01:29:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-22 01:29:43 +0000 |
commit | edc7b4d604bc916705294656886eae8e93f7611f (patch) | |
tree | 2588ac15f8337649e822cbcbf00b752363c3829b /resources/ansible_roles/qtip-generator/files/compute/run.yml | |
parent | f5f1091a7ea26f26799bb7b41a2222dff038ebda (diff) | |
parent | 3cd70da36e603f71a90f42623ae45f73e8cbb38a (diff) |
Merge "bugfix: Unable to locate package python-minimal"
Diffstat (limited to 'resources/ansible_roles/qtip-generator/files/compute/run.yml')
-rw-r--r-- | resources/ansible_roles/qtip-generator/files/compute/run.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/ansible_roles/qtip-generator/files/compute/run.yml b/resources/ansible_roles/qtip-generator/files/compute/run.yml index 59f84c3f..c166e488 100644 --- a/resources/ansible_roles/qtip-generator/files/compute/run.yml +++ b/resources/ansible_roles/qtip-generator/files/compute/run.yml @@ -21,9 +21,15 @@ {% if sut == 'vnf' %} gather_facts: no pre_tasks: - - name: check whether install python 2 in target + + - name: check whether install python 2.x in remote target become: yes raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal) + register: rs + # Sometimes vm's network is not ready, have to give some attempts to install packages + until: rs.stdout.find("Setting up python-minimal") != -1 + retries: 10 + delay: 10 - name: gather facts setup: {% endif %} |