Merge "Support the scenario for installing kubernetes in ubuntu system"
authorYifei Xue <xueyifei@huawei.com>
Thu, 23 Nov 2017 08:52:43 +0000 (08:52 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 23 Nov 2017 08:52:43 +0000 (08:52 +0000)
1  2 
deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml

  
  - name: configure local mirror repo
    copy:
 -    src: mirrors.repo
 +    src: "{{ item }}"
      dest: /etc/yum.repos.d/mirrors.repo
 +  with_first_found:
 +    - mirrors_{{ ansible_architecture }}.repo
 +    - mirrors.repo
    run_once: "True"
+   when: ansible_os_family == 'RedHat'
  
  - name: clean local pip conf to use official pip repo
    file: