foreman_ansible 14.1.1 → 14.2.0
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: 5375afa0e07f27e4bf389fd4e2b8b2e3ca51380b206f797e73d6ddb8b39e0b1a
|
4
|
+
data.tar.gz: 7e1ddc1807fd71fd95fe5ee2cc9678a3f72ccf3d87c3b4ea7e180fcc762eae71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65019637bad7d515cc4876c0a93e165b047c8252774d53ca7beba7e89f8723948f06192b1418591ea4af5fd9fd6b58f6c0f9eb2988d64226d37d2053c44cf541
|
7
|
+
data.tar.gz: a00de2265aaee7fdf823b9491e98443e4a765e593a306e81e337a9a56916dbc335e1da9898238ccba766eb08c4e27b2ed32694081203767c0a667333a1708fa5
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%#
|
2
|
+
name: Download and execute a script
|
3
|
+
job_category: Ansible Commands
|
4
|
+
description_format: Download script from %{url} and execute it
|
5
|
+
snippet: false
|
6
|
+
template_inputs:
|
7
|
+
- name: url
|
8
|
+
required: true
|
9
|
+
input_type: user
|
10
|
+
description: "URL of the script to download e.g: http://example.com/unattended/anonymous/my_script"
|
11
|
+
advanced: false
|
12
|
+
provider_type: Ansible
|
13
|
+
kind: job_template
|
14
|
+
model: JobTemplate
|
15
|
+
%>
|
16
|
+
|
17
|
+
---
|
18
|
+
- hosts: all
|
19
|
+
tasks:
|
20
|
+
- uri:
|
21
|
+
url: <%= input("url") %>
|
22
|
+
return_content: true
|
23
|
+
register: script_response
|
24
|
+
- shell:
|
25
|
+
cmd: |
|
26
|
+
{{script_response.content}}
|
27
|
+
register: out
|
28
|
+
- debug: var=out
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|
@@ -219,6 +219,7 @@ files:
|
|
219
219
|
- app/views/foreman_ansible/job_templates/ansible_windows_updates.erb
|
220
220
|
- app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb
|
221
221
|
- app/views/foreman_ansible/job_templates/convert_to_rhel.erb
|
222
|
+
- app/views/foreman_ansible/job_templates/download_and_execute_script.erb
|
222
223
|
- app/views/foreman_ansible/job_templates/module_action_-_ansible_default.erb
|
223
224
|
- app/views/foreman_ansible/job_templates/package_action_-_ansible_default.erb
|
224
225
|
- app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
|