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:
parent
30ea2bbeb4
commit
b9997c5149
@ -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?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user