1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5876 OneProvision: also install ans. coll. (#2176)

In this ansible version can't install roles and collections with a single command

(cherry picked from commit 9d85d5bef59db627bdb4a6960e264621a54aa79b)
This commit is contained in:
Jan Orel 2022-06-23 13:07:10 +02:00 committed by Ruben S. Montero
parent be95c753d9
commit 1f596a8f45
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -108,7 +108,12 @@ module OneProvision
CEPH_ANSIBLE_DIR.to_s)
end
Driver.run('ansible-galaxy install -r ' <<
# with current ansible version we need both commands
Driver.run('ansible-galaxy role install -r ' <<
'/usr/share/one/oneprovision/ansible/' <<
'hci-requirements.yml')
Driver.run('ansible-galaxy collection install -r ' <<
'/usr/share/one/oneprovision/ansible/' <<
'hci-requirements.yml')
end