foreman_ansible 14.1.0 → 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: '022826891f9116dddddd19920939b158e53bea4dc5ef646ca21d7004fa359b11'
4
- data.tar.gz: 7fcb1aa461c5cdfb79984e4e257e30590418aceff8c8d8b623ad38207e3d3722
3
+ metadata.gz: 5375afa0e07f27e4bf389fd4e2b8b2e3ca51380b206f797e73d6ddb8b39e0b1a
4
+ data.tar.gz: 7e1ddc1807fd71fd95fe5ee2cc9678a3f72ccf3d87c3b4ea7e180fcc762eae71
5
5
  SHA512:
6
- metadata.gz: c1bd359f9025fd7d9a110decc493c75f03785f2a0ffe08a49ae58cdcf934182e87633d4a6b161383637903054aec59d743f941534731f3afbba9f39adb688def
7
- data.tar.gz: 4ed0e468a309542c89867fc626fa88628e43b0a5ece64ee22d9c94cb86ee346ff738dfc768d138b5a8b06c78170d49bd9544742693d35fbd8e0ec916fddf7e30
6
+ metadata.gz: 65019637bad7d515cc4876c0a93e165b047c8252774d53ca7beba7e89f8723948f06192b1418591ea4af5fd9fd6b58f6c0f9eb2988d64226d37d2053c44cf541
7
+ data.tar.gz: a00de2265aaee7fdf823b9491e98443e4a765e593a306e81e337a9a56916dbc335e1da9898238ccba766eb08c4e27b2ed32694081203767c0a667333a1708fa5
@@ -1,7 +1,7 @@
1
1
  <% title _("Ansible Roles") %>
2
2
 
3
3
  <% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path),
4
- documentation_button('#4.1ImportingRoles', :root_url => ansible_doc_url) %>
4
+ documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>
5
5
 
6
6
  <table class="<%= table_css_classes 'table-fixed' %>">
7
7
  <thead>
@@ -7,7 +7,7 @@
7
7
  <p><%= _('No Ansible Roles were found in Foreman. If you want to assign roles to your hosts,
8
8
  you have to import them first.').html_safe %>
9
9
  </p>
10
- <p><%= link_to(_('Learn more about this in the documentation.'), documentation_url('#4.1ImportingRoles', :root_url => ansible_doc_url), target: '_blank') %></p>
10
+ <p><%= link_to(_('Learn more about this in the documentation.'), documentation_url('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible'), target: '_blank') %></p>
11
11
  <div class="blank-slate-pf-secondary-action">
12
12
  <%= ansible_proxy_import(hash_for_import_ansible_roles_path) %>
13
13
  </div>
@@ -65,7 +65,7 @@
65
65
  </fieldset>
66
66
  </br>
67
67
  <fieldset>
68
- <h2><%= _("Specify Matchers") %> <%= documentation_button('4.2.6SmartMatchers') %></h2>
68
+ <h2><%= _("Specify Matchers") %> <%= documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Overriding_Ansible_Variables_in_foreman_ansible') %></h2>
69
69
  <div class="children_fields lookup_values">
70
70
  <%= render 'lookup_keys/values', :f => f, :is_param => false %>
71
71
  </div>
@@ -2,8 +2,7 @@
2
2
  <%= stylesheet 'foreman_ansible/foreman-ansible' %>
3
3
 
4
4
  <%= title_actions display_link_if_authorized(_('New Ansible Variable'), hash_for_new_ansible_variable_path, :class => "btn btn-default no-float"),
5
- documentation_button('#4.3Variables', :root_url => ansible_doc_url)
6
- %>
5
+ documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>
7
6
 
8
7
  <table class="<%= table_css_classes 'table-fixed' %>">
9
8
  <thead>
@@ -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.0'
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.0
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-06-19 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