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

M #-: update ansible version supported by DDC (#4650)

This commit is contained in:
Alejandro Huertas Herrero 2020-05-04 18:18:23 +02:00 committed by GitHub
parent 30ea2bbeb4
commit b9997c5149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ CONFIG_DEFAULTS = {
}
# Ansible params
ANSIBLE_VERSION = [Gem::Version.new('2.5'), Gem::Version.new('2.7')]
ANSIBLE_VERSION = [Gem::Version.new('2.5'), Gem::Version.new('2.9')]
ANSIBLE_ARGS = "--ssh-common-args='-o UserKnownHostsFile=/dev/null'"
ANSIBLE_INVENTORY_DEFAULT = 'default'
@ -273,9 +273,11 @@ module OneProvision
o, _e, s = Driver.run(cmd)
raise OneProvisionLoopException if !s && !s.success?
raise OneProvisionLoopException if !s || !s.success?
hosts = o.lines.count {|l| l =~ /success/i }
hosts = o.lines.count do |l|
l =~ /success/i || l =~ /CHANGED/i
end
raise OneProvisionLoopException if hosts.zero?