diff mbox series

[09/12] ansible: Reduce long ansible messages for readability

Message ID 20241218-jag-bringup_fixes-v1-9-0bf2e07c640c@kernel.org (mailing list archive)
State New
Headers show
Series kdevops: Various fixes | expand

Commit Message

Joel Granados Dec. 18, 2024, 10:30 a.m. UTC
Signed-off-by: Joel Granados <joel.granados@kernel.org>
---
 playbooks/roles/bringup_guestfs/tasks/main.yml | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/playbooks/roles/bringup_guestfs/tasks/main.yml b/playbooks/roles/bringup_guestfs/tasks/main.yml
index c764ae4..fbbb378 100644
--- a/playbooks/roles/bringup_guestfs/tasks/main.yml
+++ b/playbooks/roles/bringup_guestfs/tasks/main.yml
@@ -6,7 +6,7 @@ 
 
 - name: Fail if {{ topdir_path }}/.config is not present
   fail:
-    msg: "You have not configured kdevops yet, configure kdevops first."
+    msg: "kdevops is not confgured. You must run 'make menuconfig'"
   when: not config_file.stat.exists or not config_file.stat.isreg
   tags: [ 'config-check' ]
 
@@ -63,7 +63,10 @@ 
 
 - name: Fail if dnsmasq configuration files exist
   fail:
-    msg: "dnsmasq configuration files or directories still exist. Please remove the following to fully uninstall dnsmasq:\n{{ dnsmasq_config_files | join('\n') }}"
+    msg: |
+      dnsmasq configuration files or directories still exist.
+      Please remove the following to fully uninstall
+      dnsmasq:\n{{ dnsmasq_config_files | join('\n') }}
   when:
     - distro_debian_based|bool
     - dnsmasq_config_files.results | selectattr('stat.exists') | list | length > 0
@@ -95,7 +98,12 @@ 
 
 - name: Fail if dnsmasq service is enabled or active
   fail:
-    msg: "dnsmasq service is {{ 'enabled' if dnsmasq_enabled.rc == 0 else 'active' if dnsmasq_active.rc == 0 else 'present' }}. Please ensure dnsmasq is fully uninstalled and disabled. Run 'sudo systemctl disable dnsmasq' and 'sudo systemctl stop dnsmasq' to disable and stop the service."
+    msg: |
+      dnsmasq service is
+      {{ 'enabled' if dnsmasq_enabled.rc == 0 else 'active' if dnsmasq_active.rc == 0 else 'present' }}.
+      Please ensure dnsmasq is fully uninstalled and disabled.
+      Run 'sudo systemctl disable dnsmasq' and 'sudo systemctl
+      stop dnsmasq' to disable and stop the service.
   when:
     - distro_debian_based|bool
     - dnsmasq_config_files | length > 0