foreman_ansible 13.0.4 → 13.0.5

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: 7132e432366b88fff7c9b385eb6708aeb04f35d8c52098af9c673d64ab049219
4
- data.tar.gz: 3761ecc72d5366c6db9260a521f72894b31c335be21800324fd45df09068a503
3
+ metadata.gz: 5c4af68ee17d90327c926378e19f7c6fc1cc7141c1379074ba6dca91cb6cc0ff
4
+ data.tar.gz: 0b1fbfd87e48bcbd01fcef781388992bcf03ca274e3187011b02adf2cf379715
5
5
  SHA512:
6
- metadata.gz: 975d0def83217d4dfdb7f53f4da0cede7244f666dba088f63abde4e2f143e88dafe08297f3f2c42c22a15204bd94eac8c6238720fab11c5c1e903324f07e0876
7
- data.tar.gz: 57b5f9d120e4655a28fb5b5ba3a3ef35de5d4a3a9e1462567a04c38da9d19aeb2e65f3570ba5c8643e78dcfb64a6dbf1646375e949a0102b611eb5d3cc2a8ae6
6
+ metadata.gz: 645645d8d3a3be25011a1cf87ce63d3ee58b3016710c9dec5a5635fd4abf827f8da1a85118430feb4e59ac0fffd975be62c651a0c1657d256d27a57da7931887
7
+ data.tar.gz: 98c523e75f9e5c5bfbee9de973d8dad7281a1d0af614e86ffefb1f9f77bc7305e27778ada8476dbfa55d7d040b7829a1941811bbf84db5db8cca26b7d5fbe917
@@ -19,7 +19,6 @@ template_inputs:
19
19
  options: "yes\r\nno"
20
20
  advanced: false
21
21
  value_type: plain
22
- resource_type: Katello::ActivationKey
23
22
  hidden_value: false
24
23
  - name: Data telemetry
25
24
  required: true
@@ -52,12 +51,27 @@ kind: job_template
52
51
  ansible.builtin.package:
53
52
  name: convert2rhel
54
53
  state: present
54
+
55
+ - name: Gather package facts
56
+ package_facts:
57
+ manager: auto
58
+
59
+ - name: Set fact for package version
60
+ set_fact:
61
+ convert2rhel_version: "{{ ansible_facts.packages['convert2rhel'][0].version }}"
62
+ when: "'convert2rhel' in ansible_facts.packages"
63
+ no_log: true
64
+
55
65
  - name: Prepopulate katello-ca-consumer
56
66
  get_url:
57
67
  url: <%= subscription_manager_configuration_url(@host) %>
58
68
  dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
69
+ when:
70
+ - "convert2rhel_version is version('2.0.0', '<')"
71
+
59
72
  - name: Start convert2rhel
60
- command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>" --keep-rhsm
73
+ command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>"
74
+
61
75
  <%- if input('Restart') == "yes" -%>
62
76
  - name: Reboot the machine
63
77
  reboot:
@@ -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 = '13.0.4'
7
+ VERSION = '13.0.5'
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: 13.0.4
4
+ version: 13.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -485,7 +485,7 @@ homepage: https://github.com/theforeman/foreman_ansible
485
485
  licenses:
486
486
  - GPL-3.0
487
487
  metadata: {}
488
- post_install_message:
488
+ post_install_message:
489
489
  rdoc_options: []
490
490
  require_paths:
491
491
  - lib
@@ -500,8 +500,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  - !ruby/object:Gem::Version
501
501
  version: '0'
502
502
  requirements: []
503
- rubygems_version: 3.2.3
504
- signing_key:
503
+ rubygems_version: 3.3.27
504
+ signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)
507
507
  test_files: