foreman_ansible 13.0.4 → 13.0.6

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: 78a598c4115838d6d1c9894d431755931e6ae6741d688031215b254d5f1c80be
4
+ data.tar.gz: fbe12bcb0d253149468c7d89820780768c2cdfd843047eda5a13f9845a6a6348
5
5
  SHA512:
6
- metadata.gz: 975d0def83217d4dfdb7f53f4da0cede7244f666dba088f63abde4e2f143e88dafe08297f3f2c42c22a15204bd94eac8c6238720fab11c5c1e903324f07e0876
7
- data.tar.gz: 57b5f9d120e4655a28fb5b5ba3a3ef35de5d4a3a9e1462567a04c38da9d19aeb2e65f3570ba5c8643e78dcfb64a6dbf1646375e949a0102b611eb5d3cc2a8ae6
6
+ metadata.gz: 46ebd9739a430b8d173c4311b4535ca1f32fa05dbb41bcb4e65ee9d538b79445cd545646c9db2804149a4b73aa7d720c817871990e115a332ca16b2c18da90d8
7
+ data.tar.gz: 847832cea55007df47f64baaeecc9965e0d6ad2df1935a95c468a785061bdf2cf4f993233a3b1abd4d431d72b8bcb7c4e2c24c75105b336fddf8b5fca1c3e0ef
@@ -19,22 +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
- hidden_value: false
24
- - name: Data telemetry
25
- required: true
26
- input_type: user
27
- description: "The convert2rhel utility uploads the following data about the system
28
- conversion to Red Hat servers for the purpose of the utility usage analysis:<br>\r\n-
29
- The convert2rhel command as executed<br>\r\n- The convert2rhel RPM version and
30
- GPG signature<br>\r\n- Success or failure status of the conversion<br>\r\n- Conversion
31
- start and end timestamps<br>\r\n- Source OS vendor and version<br>\r\n- Target
32
- RHEL version<br>\r\n- convert2rhel related environment variables<br>"
33
- options: "yes\r\nno"
34
- advanced: false
35
- value_type: plain
36
- resource_type: Katello::ActivationKey
37
- default: 'yes'
38
22
  hidden_value: false
39
23
  model: JobTemplate
40
24
  job_category: Convert 2 RHEL
@@ -43,21 +27,34 @@ kind: job_template
43
27
  %>
44
28
  ---
45
29
  - hosts: all
46
- <%- if input('Data telemetry') != "yes" -%>
47
30
  environment:
48
- CONVERT2RHEL_DISABLE_TELEMETRY: 1
49
- <%- end -%>
31
+ CONVERT2RHEL_THROUGH_FOREMAN: 1
50
32
  tasks:
51
33
  - name: Install convert2rhel
52
34
  ansible.builtin.package:
53
35
  name: convert2rhel
54
36
  state: present
37
+
38
+ - name: Gather package facts
39
+ package_facts:
40
+ manager: auto
41
+
42
+ - name: Set fact for package version
43
+ set_fact:
44
+ convert2rhel_version: "{{ ansible_facts.packages['convert2rhel'][0].version }}"
45
+ when: "'convert2rhel' in ansible_facts.packages"
46
+ no_log: true
47
+
55
48
  - name: Prepopulate katello-ca-consumer
56
49
  get_url:
57
50
  url: <%= subscription_manager_configuration_url(@host) %>
58
51
  dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
52
+ when:
53
+ - "convert2rhel_version is version('2.0.0', '<')"
54
+
59
55
  - name: Start convert2rhel
60
- command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>" --keep-rhsm
56
+ command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>"
57
+
61
58
  <%- if input('Restart') == "yes" -%>
62
59
  - name: Reboot the machine
63
60
  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.6'
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.6
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-03-13 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -500,7 +500,7 @@ 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
503
+ rubygems_version: 3.2.33
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)