Skip to content

Commit 6a9dbf1

Browse files
committed
address review comments
1 parent 42d1308 commit 6a9dbf1

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

roles/remediate/tasks/leapp_cgroups-v1_enabled.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
block:
2727
- name: leapp_cgroups-v1_enabled | Show the remediation command
2828
ansible.builtin.debug:
29-
msg: "{{ leapp_inhibitor_remediation.context | join(' ') }}"
29+
var: leapp_inhibitor_remediation.context | join(' ')
3030

3131
- name: leapp_cgroups-v1_enabled | Update the kernel arguments to disable the cgroups-v1 in favor of cgroups-v2
3232
ansible.builtin.command:
@@ -37,6 +37,6 @@
3737

3838
- name: leapp_cgroups-v1_enabled | Show the remediation command result
3939
ansible.builtin.debug:
40-
msg: "{{ leapp_disable_cgroupsv1.stdout_lines }}"
40+
msg: leapp_disable_cgroupsv1.stdout_lines
4141

4242
...

roles/remediate/tasks/leapp_deprecated_sshd_directive.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@
2727
block:
2828
- name: leapp_deprecated_sshd_directive | Output command to be executed
2929
ansible.builtin.debug:
30-
msg: "{{ remediation.context | join(' ') }}"
30+
var: remediation.context | join(' ')
3131

3232
- name: leapp_deprecated_sshd_directive | Execute the remediation command - remove the deprecated directives from the sshd configuration
3333
ansible.builtin.command:
3434
argv: "{{ remediation.context }}"
3535
register: remediation_command_output
3636
changed_when: remediation_command_output is success
3737

38+
- name: leapp_deprecated_sshd_directive | Show remediation command output
39+
debug:
40+
var: remediation_command_output.stdout_lines
3841
...

roles/remediate/tasks/leapp_legacy_network_configuration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
block:
2929
- name: leapp_legacy_network_configuration | Show the remediation command
3030
ansible.builtin.debug:
31-
msg: "{{ leapp_inhibitor_remediation.context | join(' ') }}"
31+
var: leapp_inhibitor_remediation.context | join(' ')
3232

3333
- name: leapp_legacy_network_configuration | Migrate the network connection configuration to the keyfile format
3434
ansible.builtin.command:
@@ -38,6 +38,6 @@
3838

3939
- name: leapp_legacy_network_configuration | Show the remediation command result
4040
ansible.builtin.debug:
41-
msg: "{{ leapp_legacy_network_config_migration.stdout_lines }}"
41+
var: leapp_legacy_network_config_migration.stdout_lines
4242

4343
...

roles/remediate/tasks/leapp_missing_yum_plugins.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- name: leapp_missing_yum_plugins | Output command to be executed
2222
ansible.builtin.debug:
23-
msg: "{{ remediation.context | join(' ') }}"
23+
msg: remediation.context | join(' ')
2424
when: remediation | length > 0
2525

2626
- name: leapp_missing_yum_plugins | Execute the remediation command - remove the deprecated directives from the sshd configuration
@@ -30,4 +30,7 @@
3030
register: remediation_command_output
3131
changed_when: remediation_command_output is success
3232

33+
- name: leapp_missing_yum_plugins | Show remediation command output
34+
debug:
35+
var: remediation_command_output.stdout_lines
3336
...

roles/remediate/tasks/leapp_nfs_detected.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
loop: "{{ split_summary }}"
3535
when: "'- NFS shares currently mounted:' in item"
3636

37-
# TODO: This is not used. Remove it? Does it have side effects?
38-
- name: leapp_nfs_detected | Get systemd_mounts
39-
ansible.builtin.set_fact:
40-
systemd_mounts: "{{ item | split('- NFS mounts configured with systemd-mount:') | last | trim | regex_findall('- ([^ ]+)', '\\1') }}"
41-
loop: "{{ split_summary }}"
42-
when: "'- NFS mounts configured with systemd-mount:' in item"
43-
4437
- name: leapp_nfs_detected | Comment NFS shares in /etc/fstab
4538
loop: "{{ fstab_entries }}"
4639
ansible.builtin.shell: |

0 commit comments

Comments
 (0)