diff options
author | Yifei Xue <xueyifei@huawei.com> | 2017-11-23 08:52:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-23 08:52:43 +0000 |
commit | 9a76ddb1075479c891389a0c9303d80ead9895a0 (patch) | |
tree | 710319df4afdbd566ac7bd3b3a9e3924ca295053 /deploy/adapters/ansible/kubernetes/roles/kargo | |
parent | abf896027b53f98f6f61a6c225aa3cde636f5877 (diff) | |
parent | a9f6a2b1665a31bbdaf266c333410bde2418cf15 (diff) |
Merge "Support the scenario for installing kubernetes in ubuntu system"
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/kargo')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml index a40778f5..4df8dffa 100644 --- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml +++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml @@ -12,12 +12,14 @@ path: /etc/yum.repos.d state: absent run_once: "True" + when: ansible_os_family == 'RedHat' - name: create local repo conf dir file: path: /etc/yum.repos.d state: directory run_once: "True" + when: ansible_os_family == 'RedHat' - name: configure local mirror repo copy: @@ -27,6 +29,7 @@ - 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: @@ -44,6 +47,7 @@ - openssl-devel - python-devel run_once: "True" + when: ansible_os_family == 'RedHat' - name: update python packages pip: |