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: b4a545f421f2f2c43e19e841ccef12f519600a76d635455a78384bec421a5a83
4
- data.tar.gz: 55ddd534490d785646a7cf7c88ba36c9e9e16502f8542615a184ecd1e00a2f02
3
+ metadata.gz: 5375afa0e07f27e4bf389fd4e2b8b2e3ca51380b206f797e73d6ddb8b39e0b1a
4
+ data.tar.gz: 7e1ddc1807fd71fd95fe5ee2cc9678a3f72ccf3d87c3b4ea7e180fcc762eae71
5
5
  SHA512:
6
- metadata.gz: 6d82a845c26ec335af11b373929b017cc112ef412463298c74d80efe432feb2062d51da39deacd4adc17eccc8ba17a1ac77ebd5915aaac222580b0f9d729b899
7
- data.tar.gz: 317d0658cb5b25ae49036cddef2781b46c99bd380ebf3a59066ee6d2ee94ac6e32d7364ac0593ec7f6884bf738f7310a3ca0d4633f85bd015091b8dc8404eff8
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
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '14.1.1'
7
+ VERSION = '14.2.0'
8
8
  end
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.1.1
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-07-31 00:00:00.000000000 Z
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