mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: update ansible version supported by DDC (#4650)
This commit is contained in:
1 parent
30ea2bbeb4
commit
b9997c5149
1 file changed
+5
-3
@@ -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?
|
||||
|
||||
|
||||
Reference in new issue
Block a user