noheat: install Ansible kubernetes collection 10/123010/3
authorMaciej Wereski <m.wereski@partner.samsung.com>
Wed, 28 Jul 2021 13:43:26 +0000 (13:43 +0000)
committerMorgan Richomme <morgan.richomme@orange.com>
Tue, 24 Aug 2021 13:41:02 +0000 (13:41 +0000)
Issue-ID: INT-1601
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: Id7cfc411a73f11102ef9c90364da986d49dbb888

deployment/noheat/infra-openstack/ansible/create.yml

index d2828d7..847efa2 100644 (file)
       ansible.posix.synchronize:
         src: ../../cluster-rke
         dest: ~/deploy
+    - name: Install python dependencies
+      become: yes
+      package:
+        name:
+          - python3-pip
+          - python3-setuptools
+        state: present
+    - name: Install community.kubernetes.k8s Ansible collection dependencies
+      pip:
+        name:
+          - openshift
+          - pyyaml
+          - kubernetes
+      become: yes
     - name: Add Ansible collection dependencies
       command: "ansible-galaxy collection install ansible.posix"
+    - name: Add community.kubernetes Ansible collection
+      command: "ansible-galaxy collection install community.kubernetes"