foreman_ansible 16.0.0 → 16.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41ff724bbad2bbe9731c113a2840350c6ae278c7f28cc9e1e09ab2824a3291ea
4
- data.tar.gz: 9b8329d3c3ac17afda9b7321c8cea51626786f781eb2fb8ce4cb27cf6f18f04c
3
+ metadata.gz: 3e3320155d14901c6c7a28378a8520c0a382582c03ad74fa60f5d1118eaf6034
4
+ data.tar.gz: 5a72a8d7537919e8cc1d5013d8b6480c472ceeced50cd13d666d65ddab4cf4ed
5
5
  SHA512:
6
- metadata.gz: a9a9618b63c012941d14a79cdc7e415bfb1643ae009b756152fbf257409225ede39aa34dd359b270d3383266d4c4f8a7b8b3b791cabbdaef4fb07b0943b01058
7
- data.tar.gz: d3313dbcfa460238cdc8896085443c5c0326de0bb3f77365779cd23dee407f7f63bedd176e5446aaa1bd9ad93ad1704563101a50ab70b242da487e0ea5c8a890
6
+ metadata.gz: 3725cc132048d7eed961875ecb3f325f7e6d39181d7f8889ae5fd74d5f972e77f8c742349f73aa7865aa671966cf31de00eb2208616c9a4a7260761dfaef8cea
7
+ data.tar.gz: 9eb0b494ff4a74615f21e6ff83cd4c02957760b23d7d6a59979a3a93f40a1f5cd85dc15bb34c4596ef83fa928b8cb0d5ccde6e656a9fcc39da92efbcfc9f3d1a
@@ -6,7 +6,7 @@
6
6
  "Project-Id-Version": "foreman_ansible 15.0.5",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2018-11-14 21:36+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
10
10
  "Language-Team": "French (https://app.transifex.com/foreman/teams/114/fr/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -285,10 +285,10 @@
285
285
  "Activer Ansible Callback"
286
286
  ],
287
287
  "Enable Ansible Check Mode": [
288
- ""
288
+ "Activer le mode de vérification Ansible"
289
289
  ],
290
290
  "Enable Ansible Check Mode for this template": [
291
- ""
291
+ "Activer le mode de vérification Ansible pour ce modèle"
292
292
  ],
293
293
  "Enable the callback plugin for this template": [
294
294
  "Activer le plugin de rappel pour ce modèle"
@@ -822,7 +822,7 @@
822
822
  "Mise à jour du smart proxy"
823
823
  ],
824
824
  "Update an override value": [
825
- ""
825
+ "Mettre à jour une valeur de remplacement"
826
826
  ],
827
827
  "Updates Ansible variable": [
828
828
  "Mises à jour des variables Ansible"
@@ -201,7 +201,7 @@
201
201
  "Ansible 変数を作成します"
202
202
  ],
203
203
  "Create an override value for a specific ansible variable": [
204
- "特定の Ansible 変数の上書き値を作成します"
204
+ "特定の Ansible 変数の上書き値を作成する"
205
205
  ],
206
206
  "DEPRECATED: Import Ansible roles": [
207
207
  "非推奨: Ansible ロールのインポート"
@@ -285,10 +285,10 @@
285
285
  "Ansible コールバックの有効化"
286
286
  ],
287
287
  "Enable Ansible Check Mode": [
288
- ""
288
+ "Ansible チェックモードの有効化"
289
289
  ],
290
290
  "Enable Ansible Check Mode for this template": [
291
- ""
291
+ "このテンプレートの Ansible チェックモードを有効にする"
292
292
  ],
293
293
  "Enable the callback plugin for this template": [
294
294
  "このテンプレートの callback プラグインを有効にする"
@@ -822,7 +822,7 @@
822
822
  "Smart Proxy の更新"
823
823
  ],
824
824
  "Update an override value": [
825
- ""
825
+ "オーバーライド値の更新"
826
826
  ],
827
827
  "Updates Ansible variable": [
828
828
  "Ansible 変数を更新します"
@@ -285,10 +285,10 @@
285
285
  "Ansible 콜백 활성화"
286
286
  ],
287
287
  "Enable Ansible Check Mode": [
288
- ""
288
+ "Ansible 확인 모드 활성화"
289
289
  ],
290
290
  "Enable Ansible Check Mode for this template": [
291
- ""
291
+ "이 템플릿의 Ansible 확인 모드를 활성화합니다"
292
292
  ],
293
293
  "Enable the callback plugin for this template": [
294
294
  "이 템플릿에 대한 콜백 플러그인을 활성화합니다"
@@ -822,7 +822,7 @@
822
822
  "스마트 프록시 업데이트"
823
823
  ],
824
824
  "Update an override value": [
825
- ""
825
+ "덮어쓰기 값 업데이트"
826
826
  ],
827
827
  "Updates Ansible variable": [
828
828
  "Ansible 변수 업데이트"
@@ -6,7 +6,7 @@
6
6
  "Project-Id-Version": "foreman_ansible 15.0.5",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2018-11-14 21:36+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
10
10
  "Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -285,10 +285,10 @@
285
285
  "启用 Ansible 回调"
286
286
  ],
287
287
  "Enable Ansible Check Mode": [
288
- ""
288
+ "启用 Ansible 检查模式"
289
289
  ],
290
290
  "Enable Ansible Check Mode for this template": [
291
- ""
291
+ "为此模板启用 Ansible 检查模式"
292
292
  ],
293
293
  "Enable the callback plugin for this template": [
294
294
  "为此模板启用回调插件"
@@ -822,7 +822,7 @@
822
822
  "更新智能代理"
823
823
  ],
824
824
  "Update an override value": [
825
- ""
825
+ "更新覆盖值"
826
826
  ],
827
827
  "Updates Ansible variable": [
828
828
  "更新 Ansible 变量"
@@ -39,10 +39,26 @@ model: JobTemplate
39
39
  - shell: "<%= input('pre_script') %>"
40
40
  <%- end -%>
41
41
  tasks:
42
- - package:
42
+ <%= indent(4) { snippet('check_bootc_status') } %>
43
+ - name: Enable bootc overlay
44
+ shell:
45
+ cmd: 'bootc usr-overlay'
46
+ register: out
47
+ ignore_errors: true
48
+ when: is_bootc_host
49
+ - debug: var=out
50
+ - name: Install packages via dnf for image mode machines
51
+ package:
52
+ use: 'dnf'
43
53
  <%= indent(8) { to_yaml({"name" => input('name')}).gsub(/---\n/, '') } -%>
44
54
  state: <%= input('state') %>
45
- <%- if input('post_script').present? -%>
55
+ when: is_bootc_host
56
+ - name: Install packages normally
57
+ package:
58
+ <%= indent(8) { to_yaml({"name" => input('name')}).gsub(/---\n/, '') } -%>
59
+ state: <%= input('state') %>
60
+ when: not is_bootc_host
61
+ <%- if input('post_script').present? -%>
46
62
  post_tasks:
47
63
  - shell: "<%= input('post_script') %>"
48
- <%- end -%>
64
+ <%- end -%>
@@ -0,0 +1,22 @@
1
+ <%#
2
+ kind: snippet
3
+ name: check_bootc_status
4
+ provider_type: Ansible
5
+ model: JobTemplate
6
+ snippet: true
7
+ description: |
8
+ This snippet checks if a host is a bootc (image mode) host.
9
+ -%>
10
+ - name: Collect bootc status
11
+ shell:
12
+ cmd: 'bootc status --json'
13
+ register: bootc_status
14
+ ignore_errors: true
15
+ - name: Parse bootc status json
16
+ set_fact:
17
+ bootc_status_json: "{{ bootc_status.stdout | from_json }}"
18
+ when: bootc_status.rc == 0
19
+ - name: Determine host is a bootc host
20
+ set_fact:
21
+ is_bootc_host: "{{ bootc_status_json is defined and bootc_status_json['status']['booted'] | trim != 'None' }}"
22
+
@@ -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 = '16.0.0'
7
+ VERSION = '16.0.1'
8
8
  end
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_ansible 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2025-02-20 11:49+0100\n"
12
- "PO-Revision-Date: 2025-02-20 11:49+0100\n"
11
+ "POT-Creation-Date: 2025-03-17 19:38+0100\n"
12
+ "PO-Revision-Date: 2025-03-17 19:38+0100\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1000,12 +1000,12 @@ msgid "Ansible variable override successfully changed."
1000
1000
  msgstr ""
1001
1001
 
1002
1002
  #:
1003
- #: ../webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValue.js:41
1003
+ #: ../webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValue.js:37
1004
1004
  msgid "true"
1005
1005
  msgstr ""
1006
1006
 
1007
1007
  #:
1008
- #: ../webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValue.js:42
1008
+ #: ../webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValue.js:38
1009
1009
  msgid "false"
1010
1010
  msgstr ""
1011
1011
 
@@ -11,7 +11,7 @@
11
11
  # Claer <transiblu@claer.hammock.fr>, 2022
12
12
  # Amit Upadhye <aupadhye@redhat.com>, 2023
13
13
  # 21966816214bc546c1fc8a185e75ca1c, 2023
14
- # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024
14
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
15
15
  #
16
16
  msgid ""
17
17
  msgstr ""
@@ -19,7 +19,7 @@ msgstr ""
19
19
  "Report-Msgid-Bugs-To: \n"
20
20
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
21
21
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
22
- "n.nl>, 2024\n"
22
+ "n.nl>, 2025\n"
23
23
  "Language-Team: French (https://app.transifex.com/foreman/teams/114/fr/)\n"
24
24
  "MIME-Version: 1.0\n"
25
25
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -296,10 +296,10 @@ msgid "Enable Ansible Callback"
296
296
  msgstr "Activer Ansible Callback"
297
297
 
298
298
  msgid "Enable Ansible Check Mode"
299
- msgstr ""
299
+ msgstr "Activer le mode de vérification Ansible"
300
300
 
301
301
  msgid "Enable Ansible Check Mode for this template"
302
- msgstr ""
302
+ msgstr "Activer le mode de vérification Ansible pour ce modèle"
303
303
 
304
304
  msgid "Enable the callback plugin for this template"
305
305
  msgstr "Activer le plugin de rappel pour ce modèle"
@@ -837,7 +837,7 @@ msgid "Update Smart Proxy"
837
837
  msgstr "Mise à jour du smart proxy"
838
838
 
839
839
  msgid "Update an override value"
840
- msgstr ""
840
+ msgstr "Mettre à jour une valeur de remplacement"
841
841
 
842
842
  msgid "Updates Ansible variable"
843
843
  msgstr "Mises à jour des variables Ansible"
@@ -206,7 +206,7 @@ msgid "Create Ansible variable"
206
206
  msgstr "Ansible 変数を作成します"
207
207
 
208
208
  msgid "Create an override value for a specific ansible variable"
209
- msgstr "特定の Ansible 変数の上書き値を作成します"
209
+ msgstr "特定の Ansible 変数の上書き値を作成する"
210
210
 
211
211
  msgid "DEPRECATED: Import Ansible roles"
212
212
  msgstr "非推奨: Ansible ロールのインポート"
@@ -290,10 +290,10 @@ msgid "Enable Ansible Callback"
290
290
  msgstr "Ansible コールバックの有効化"
291
291
 
292
292
  msgid "Enable Ansible Check Mode"
293
- msgstr ""
293
+ msgstr "Ansible チェックモードの有効化"
294
294
 
295
295
  msgid "Enable Ansible Check Mode for this template"
296
- msgstr ""
296
+ msgstr "このテンプレートの Ansible チェックモードを有効にする"
297
297
 
298
298
  msgid "Enable the callback plugin for this template"
299
299
  msgstr "このテンプレートの callback プラグインを有効にする"
@@ -831,7 +831,7 @@ msgid "Update Smart Proxy"
831
831
  msgstr "Smart Proxy の更新"
832
832
 
833
833
  msgid "Update an override value"
834
- msgstr ""
834
+ msgstr "オーバーライド値の更新"
835
835
 
836
836
  msgid "Updates Ansible variable"
837
837
  msgstr "Ansible 変数を更新します"
@@ -290,10 +290,10 @@ msgid "Enable Ansible Callback"
290
290
  msgstr "Ansible 콜백 활성화"
291
291
 
292
292
  msgid "Enable Ansible Check Mode"
293
- msgstr ""
293
+ msgstr "Ansible 확인 모드 활성화"
294
294
 
295
295
  msgid "Enable Ansible Check Mode for this template"
296
- msgstr ""
296
+ msgstr "이 템플릿의 Ansible 확인 모드를 활성화합니다"
297
297
 
298
298
  msgid "Enable the callback plugin for this template"
299
299
  msgstr "이 템플릿에 대한 콜백 플러그인을 활성화합니다"
@@ -829,7 +829,7 @@ msgid "Update Smart Proxy"
829
829
  msgstr "스마트 프록시 업데이트"
830
830
 
831
831
  msgid "Update an override value"
832
- msgstr ""
832
+ msgstr "덮어쓰기 값 업데이트"
833
833
 
834
834
  msgid "Updates Ansible variable"
835
835
  msgstr "Ansible 변수 업데이트"
@@ -8,7 +8,7 @@
8
8
  # tim123, 2022
9
9
  # Bryan Kearney <bryan.kearney@gmail.com>, 2022
10
10
  # Amit Upadhye <aupadhye@redhat.com>, 2023
11
- # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024
11
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
@@ -16,7 +16,7 @@ msgstr ""
16
16
  "Report-Msgid-Bugs-To: \n"
17
17
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
18
18
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
19
- "n.nl>, 2024\n"
19
+ "n.nl>, 2025\n"
20
20
  "Language-Team: Chinese (China) (https://app.transifex.com/foreman/teams/114/zh"
21
21
  "_CN/)\n"
22
22
  "MIME-Version: 1.0\n"
@@ -293,10 +293,10 @@ msgid "Enable Ansible Callback"
293
293
  msgstr "启用 Ansible 回调"
294
294
 
295
295
  msgid "Enable Ansible Check Mode"
296
- msgstr ""
296
+ msgstr "启用 Ansible 检查模式"
297
297
 
298
298
  msgid "Enable Ansible Check Mode for this template"
299
- msgstr ""
299
+ msgstr "为此模板启用 Ansible 检查模式"
300
300
 
301
301
  msgid "Enable the callback plugin for this template"
302
302
  msgstr "为此模板启用回调插件"
@@ -834,7 +834,7 @@ msgid "Update Smart Proxy"
834
834
  msgstr "更新智能代理"
835
835
 
836
836
  msgid "Update an override value"
837
- msgstr ""
837
+ msgstr "更新覆盖值"
838
838
 
839
839
  msgid "Updates Ansible variable"
840
840
  msgstr "更新 Ansible 变量"
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.0.0
4
+ version: 16.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-03-27 00:00:00.000000000 Z
11
+ date: 2025-06-03 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: acts_as_list
@@ -242,6 +243,7 @@ files:
242
243
  - app/views/foreman_ansible/job_templates/service_action_-_ansible_default.erb
243
244
  - app/views/foreman_ansible/job_templates/service_action_-_enable_web_console.erb
244
245
  - app/views/foreman_ansible/job_templates/smart_proxy_upgrade_-_ansible_default.erb
246
+ - app/views/foreman_ansible/job_templates/snippet/check_bootc_status.erb
245
247
  - app/views/job_templates/_job_template_callback_tab_content.html.erb
246
248
  - app/views/job_templates/_job_template_callback_tab_headers.html.erb
247
249
  - app/views/ui_ansible_roles/index.json.rabl
@@ -283,8 +285,6 @@ files:
283
285
  - locale/cs_CZ/foreman_ansible.po
284
286
  - locale/de/LC_MESSAGES/foreman_ansible.mo
285
287
  - locale/de/foreman_ansible.po
286
- - locale/en/LC_MESSAGES/foreman_ansible.mo
287
- - locale/en_GB/LC_MESSAGES/foreman_ansible.mo
288
288
  - locale/es/LC_MESSAGES/foreman_ansible.mo
289
289
  - locale/es/foreman_ansible.po
290
290
  - locale/foreman_ansible.pot
@@ -491,6 +491,7 @@ homepage: https://github.com/theforeman/foreman_ansible
491
491
  licenses:
492
492
  - GPL-3.0
493
493
  metadata: {}
494
+ post_install_message:
494
495
  rdoc_options: []
495
496
  require_paths:
496
497
  - lib
@@ -505,7 +506,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
505
506
  - !ruby/object:Gem::Version
506
507
  version: '0'
507
508
  requirements: []
508
- rubygems_version: 3.6.2
509
+ rubygems_version: 3.5.23
510
+ signing_key:
509
511
  specification_version: 4
510
512
  summary: Ansible integration with Foreman (theforeman.org)
511
513
  test_files: