smart_proxy_ansible 3.5.7 → 3.5.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f791dcb337052aba097f02210ac04a3fedd80afff15d79b370058d6f06b108
|
4
|
+
data.tar.gz: a41495f8bad24dcd1d7c5c0798b992abf96f1dff501c1cdd7e22dfd68e5406ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ce5d1746e0bb01220cdd67bf1af0b414cbbb6d8215079e8b35ed089e83e95c70b4b75646867892dab443ed67fb8b1433d9b18da9d5a0142b1a18e7adea33f0a
|
7
|
+
data.tar.gz: c41477f577e7c73a026a3cb80fdc0a3910ed1f007f08c7121d3cec0b88a30ae2b76220d43def38db6bba53a3aa8130c7acb260f7dfb45840a116b7d0debc8ace
|
@@ -14,13 +14,13 @@ module Proxy
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_playbooks_names(collections_path)
|
17
|
-
|
17
|
+
glob_path("#{collections_path}/ansible_collections/*/*/playbooks/*").map do |path|
|
18
18
|
ReaderHelper.playbook_or_role_full_name(path)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def read_collection_playbooks(collections_path, playbooks_to_import = nil)
|
23
|
-
|
23
|
+
glob_path("#{collections_path}/ansible_collections/*/*/playbooks/*").map do |path|
|
24
24
|
name = ReaderHelper.playbook_or_role_full_name(path)
|
25
25
|
{
|
26
26
|
name: name,
|
@@ -31,6 +31,12 @@ module Proxy
|
|
31
31
|
message = "Could not read Ansible playbooks #{collections_path} - #{e.message}"
|
32
32
|
raise ReadPlaybooksException, message
|
33
33
|
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def glob_path(path)
|
38
|
+
Dir.glob path
|
39
|
+
end
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
@@ -44,7 +44,7 @@ module Proxy
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def read_collection_roles(collections_path)
|
47
|
-
|
47
|
+
glob_path("#{collections_path}/ansible_collections/*/*/roles/*").map do |path|
|
48
48
|
ReaderHelper.playbook_or_role_full_name(path)
|
49
49
|
end
|
50
50
|
rescue Errno::ENOENT, Errno::EACCES => e
|
@@ -147,9 +147,17 @@ module Proxy::Ansible
|
|
147
147
|
header, *rows = event['stdout'].strip.lines.map(&:rstrip)
|
148
148
|
# #lines strips the leading newline that precedes the header
|
149
149
|
broadcast_data("\n" + header + "\n", 'stdout')
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
|
151
|
+
inventory_hosts = @outputs.keys.select { |key| key.is_a? String }
|
152
|
+
rows.each do |row|
|
153
|
+
host = inventory_hosts.find { |host| row =~ /#{host}/ }
|
154
|
+
line = row + "\n"
|
155
|
+
unless host
|
156
|
+
broadcast_data(line, 'stdout')
|
157
|
+
next
|
158
|
+
end
|
159
|
+
|
160
|
+
publish_data_for(host, line, 'stdout')
|
153
161
|
|
154
162
|
# If the task has been rescued, it won't consider a failure
|
155
163
|
if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0 && unreachable[host].to_i <= 0 && rescued[host].to_i > 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -25,90 +25,6 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '13.0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: mocha
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: webmock
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '3'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '3'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rack-test
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: logger
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: smart_proxy
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: net-ssh
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :runtime
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
28
|
- !ruby/object:Gem::Dependency
|
113
29
|
name: smart_proxy_dynflow
|
114
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,7 +85,7 @@ files:
|
|
169
85
|
- settings.d/ansible.yml.example
|
170
86
|
homepage: https://github.com/theforeman/smart_proxy_ansible
|
171
87
|
licenses:
|
172
|
-
- GPL-3.0
|
88
|
+
- GPL-3.0-only
|
173
89
|
metadata: {}
|
174
90
|
post_install_message:
|
175
91
|
rdoc_options: []
|
@@ -179,14 +95,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
95
|
requirements:
|
180
96
|
- - ">="
|
181
97
|
- !ruby/object:Gem::Version
|
182
|
-
version: '2.
|
98
|
+
version: '2.7'
|
183
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
100
|
requirements:
|
185
101
|
- - ">="
|
186
102
|
- !ruby/object:Gem::Version
|
187
103
|
version: '0'
|
188
104
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
105
|
+
rubygems_version: 3.5.23
|
190
106
|
signing_key:
|
191
107
|
specification_version: 4
|
192
108
|
summary: Smart-Proxy Ansible plugin
|