AnsiblePlaybooksRemoteListing services

Listing services

Creating the playbook

Executed:

aadmin@uvm0:~/code/it-wiz/devops/ansible/projects/remote/playbooks$ touch list_services.yml

Brought list_services.yml to the following form:

- name: List All Services
  hosts: all
  become: true
  gather_facts: false

  tasks:
    - name: Get list of all services using systemctl
      shell: systemctl list-units --type=service --all --no-pager | grep .service
      register: systemd_services
      changed_when: false
      ignore_errors: true

    - name: Display services
      debug:
        msg: "{{ systemd_services.stdout_lines }}"

Equivalent Bash commands

root@uvm26:~# systemctl list-units --type=service --all --no-pager | grep .service
root@uvm27:~# systemctl list-units --type=service --all --no-pager | grep .service

Execution of the playbook

Executed:

aadmin@uvm0:~/code/it-wiz/devops/ansible/projects/remote$ ansible-playbook playbooks/list_services.yml --ask-vault-pass

Details

    aadmin@uvm0:~/code/it-wiz/devops/ansible/projects/remote$ ansible-playbook playbooks/list_services.yml --ask-vault-pass
    Vault password:
 
    PLAY [List All Services] ***********************************************************************************************************************************************************
 
    TASK [Get list of all services using systemctl] ************************************************************************************************************************************
    ok: [uvm26]
    ok: [uvm27]
 
    TASK [Display services] ************************************************************************************************************************************************************
    ok: [uvm26] => {
        "msg": [
            "  apparmor.service                         loaded    active   exited  Load AppArmor profiles",
            "  apport-autoreport.service                loaded    inactive dead    Process error reports when automatic reporting is enabled",
            "  apport.service                           loaded    active   exited  automatic crash report generation",
            "  apt-daily-upgrade.service                loaded    inactive dead    Daily apt upgrade and clean activities",
            "  apt-daily.service                        loaded    inactive dead    Daily apt download activities",
            "● auditd.service                           not-found inactive dead    auditd.service",
            "  blk-availability.service                 loaded    active   exited  Availability of block devices",
            "  cloud-init-local.service                 loaded    inactive dead    Cloud-init: Local Stage (pre-network)",
            "● connman.service                          not-found inactive dead    connman.service",
            "● console-screen.service                   not-found inactive dead    console-screen.service",
            "  console-setup.service                    loaded    active   exited  Set console font and keymap",
            "  cron.service                             loaded    active   running Regular background program processing daemon",
            "  dbus.service                             loaded    active   running D-Bus System Message Bus",
            "● display-manager.service                  not-found inactive dead    display-manager.service",
            "  dm-event.service                         loaded    inactive dead    Device-mapper event daemon",
            "  dmesg.service                            loaded    inactive dead    Save initial kernel messages after boot",
            "  dpkg-db-backup.service                   loaded    inactive dead    Daily dpkg database backup service",
            "  e2scrub_all.service                      loaded    inactive dead    Online ext4 Metadata Check for All Filesystems",
            "  e2scrub_reap.service                     loaded    inactive dead    Remove Stale Online ext4 Metadata Check Snapshots",
            "  emergency.service                        loaded    inactive dead    Emergency Shell",
            "● fcoe.service                             not-found inactive dead    fcoe.service",
            "  finalrd.service                          loaded    active   exited  Create final runtime dir for shutdown pivot root",
            "  fstrim.service                           loaded    inactive dead    Discard unused blocks on filesystems from /etc/fstab",
            "  fwupd-refresh.service                    loaded    inactive dead    Refresh fwupd metadata and update motd",
            "  getty-static.service                     loaded    inactive dead    getty on tty2-tty6 if dbus and logind are not available",
            "  getty@tty1.service                       loaded    active   running Getty on tty1",
            "  grub-common.service                      loaded    inactive dead    Record successful boot for GRUB",
            "  grub-initrd-fallback.service             loaded    inactive dead    GRUB failed boot detection",
            "● hv_kvp_daemon.service                    not-found inactive dead    hv_kvp_daemon.service",
            "  initrd-cleanup.service                   loaded    inactive dead    Cleaning Up and Shutting Down Daemons",
            "  initrd-parse-etc.service                 loaded    inactive dead    Mountpoints Configured in the Real Root",
            "  initrd-switch-root.service               loaded    inactive dead    Switch Root",
            "  initrd-udevadm-cleanup-db.service        loaded    inactive dead    Cleanup udev Database",
            "● iscsi-shutdown.service                   not-found inactive dead    iscsi-shutdown.service",
            "  iscsid.service                           loaded    inactive dead    iSCSI initiator daemon (iscsid)",
            "● kbd.service                              not-found inactive dead    kbd.service",
            "  keyboard-setup.service                   loaded    active   exited  Set the console keyboard layout",
            "  kmod-static-nodes.service                loaded    active   exited  Create List of Static Device Nodes",
            "  ldconfig.service                         loaded    inactive dead    Rebuild Dynamic Linker Cache",
            "  logrotate.service                        loaded    inactive dead    Rotate log files",
            "● lvm2-activation-early.service            not-found inactive dead    lvm2-activation-early.service",
            "  lvm2-lvmpolld.service                    loaded    inactive dead    LVM2 poll daemon",
            "  lvm2-monitor.service                     loaded    active   exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling",
            "  man-db.service                           loaded    inactive dead    Daily man-db regeneration",
            "  ModemManager.service                     loaded    active   running Modem Manager",
            "  modprobe@configfs.service                loaded    inactive dead    Load Kernel Module configfs",
            "  modprobe@dm_mod.service                  loaded    inactive dead    Load Kernel Module dm_mod",
            "  modprobe@drm.service                     loaded    inactive dead    Load Kernel Module drm",
            "  modprobe@efi_pstore.service              loaded    inactive dead    Load Kernel Module efi_pstore",
            "  modprobe@fuse.service                    loaded    inactive dead    Load Kernel Module fuse",
            "  modprobe@loop.service                    loaded    inactive dead    Load Kernel Module loop",
            "  motd-news.service                        loaded    inactive dead    Message of the Day",
            "  multipathd.service                       loaded    active   running Device-Mapper Multipath Device Controller",
            "  netplan-ovs-cleanup.service              loaded    inactive dead    OpenVSwitch configuration for cleanup",
            "  networkd-dispatcher.service              loaded    inactive dead    Dispatcher daemon for systemd-networkd",
            "● NetworkManager.service                   not-found inactive dead    NetworkManager.service",
            "  open-iscsi.service                       loaded    inactive dead    Login to default iSCSI targets",
            "  open-vm-tools.service                    loaded    active   running Service for virtual machines hosted on VMware",
            "● ovsdb-server.service                     not-found inactive dead    ovsdb-server.service",
            "  plymouth-quit-wait.service               loaded    active   exited  Hold until boot process finishes up",
            "  plymouth-quit.service                    loaded    active   exited  Terminate Plymouth Boot Screen",
            "  plymouth-read-write.service              loaded    active   exited  Tell Plymouth To Write Out Runtime Data",
            "  plymouth-start.service                   loaded    inactive dead    Show Plymouth Boot Screen",
            "  plymouth-switch-root.service             loaded    inactive dead    Plymouth switch root service",
            "  polkit.service                           loaded    active   running Authorization Manager",
            "  pollinate.service                        loaded    inactive dead    Pollinate to seed the pseudo random number generator",
            "● rbdmap.service                           not-found inactive dead    rbdmap.service",
            "  rc-local.service                         loaded    inactive dead    /etc/rc.local Compatibility",
            "  rescue.service                           loaded    inactive dead    Rescue Shell",
            "  rsyslog.service                          loaded    active   running System Logging Service",
            "  secureboot-db.service                    loaded    inactive dead    Secure Boot updates for DB and DBX",
            "  setvtrgb.service                         loaded    active   exited  Set console scheme",
            "  snapd.apparmor.service                   loaded    active   exited  Load AppArmor profiles managed internally by snapd",
            "  snapd.autoimport.service                 loaded    inactive dead    Auto import assertions from block devices",
            "  snapd.core-fixup.service                 loaded    inactive dead    Automatically repair incorrect owner/permissions on core devices",
            "  snapd.failure.service                    loaded    inactive dead    Failure handling of the snapd snap",
            "  snapd.recovery-chooser-trigger.service   loaded    inactive dead    Wait for the Ubuntu Core chooser trigger",
            "  snapd.seeded.service                     loaded    active   exited  Wait until snapd is fully seeded",
            "  snapd.service                            loaded    active   running Snap Daemon",
            "  snapd.snap-repair.service                loaded    inactive dead    Automatically fetch and run repair assertions",
            "  snapd.system-shutdown.service            loaded    inactive dead    Ubuntu core (all-snaps) system shutdown helper setup service",
            "  ssh.service                              loaded    active   running OpenBSD Secure Shell server",
            "  sysstat-collect.service                  loaded    inactive dead    system activity accounting tool",
            "  sysstat-summary.service                  loaded    inactive dead    Generate a daily summary of process accounting",
            "  sysstat.service                          loaded    active   exited  Resets System Activity Logs",
            "  systemd-ask-password-console.service     loaded    inactive dead    Dispatch Password Requests to Console",
            "  systemd-ask-password-plymouth.service    loaded    inactive dead    Forward Password Requests to Plymouth",
            "  systemd-ask-password-wall.service        loaded    inactive dead    Forward Password Requests to Wall",
            "  systemd-battery-check.service            loaded    inactive dead    Check battery level during early boot",
            "  systemd-binfmt.service                   loaded    active   exited  Set Up Additional Binary Formats",
            "  systemd-bsod.service                     loaded    inactive dead    Displays emergency message in full screen.",
            "  systemd-firstboot.service                loaded    inactive dead    First Boot Wizard",
            "  systemd-fsck-root.service                loaded    inactive dead    File System Check on Root Device",
            "  systemd-fsckd.service                    loaded    inactive dead    File System Check Daemon to report status",
            "  systemd-hibernate-resume.service         loaded    inactive dead    Resume from hibernation",
            "  systemd-hibernate.service                loaded    inactive dead    System Hibernate",
            "  systemd-hwdb-update.service              loaded    inactive dead    Rebuild Hardware Database",
            "  systemd-hybrid-sleep.service             loaded    inactive dead    System Hybrid Suspend+Hibernate",
            "  systemd-initctl.service                  loaded    inactive dead    initctl Compatibility Daemon",
            "  systemd-journal-catalog-update.service   loaded    inactive dead    Rebuild Journal Catalog",
            "  systemd-journal-flush.service            loaded    active   exited  Flush Journal to Persistent Storage",
            "  systemd-journald.service                 loaded    active   running Journal Service",
            "  systemd-logind.service                   loaded    active   running User Login Management",
            "  systemd-machine-id-commit.service        loaded    inactive dead    Commit a transient machine-id on disk",
            "  systemd-modules-load.service             loaded    active   exited  Load Kernel Modules",
            "  systemd-networkd-wait-online.service     loaded    active   exited  Wait for Network to be Configured",
            "  systemd-networkd.service                 loaded    active   running Network Configuration",
            "● systemd-oomd.service                     not-found inactive dead    systemd-oomd.service",
            "  systemd-pcrmachine.service               loaded    inactive dead    TPM2 PCR Machine ID Measurement",
            "  systemd-pcrphase-initrd.service          loaded    inactive dead    TPM2 PCR Barrier (initrd)",
            "  systemd-pcrphase-sysinit.service         loaded    inactive dead    TPM2 PCR Barrier (Initialization)",
            "  systemd-pcrphase.service                 loaded    inactive dead    TPM2 PCR Barrier (User)",
            "  systemd-pstore.service                   loaded    inactive dead    Platform Persistent Storage Archival",
            "  systemd-random-seed.service              loaded    active   exited  Load/Save OS Random Seed",
            "  systemd-remount-fs.service               loaded    active   exited  Remount Root and Kernel File Systems",
            "  systemd-repart.service                   loaded    inactive dead    Repartition Root Disk",
            "  systemd-resolved.service                 loaded    active   running Network Name Resolution",
            "  systemd-rfkill.service                   loaded    inactive dead    Load/Save RF Kill Switch Status",
            "  systemd-soft-reboot.service              loaded    inactive dead    Reboot System Userspace",
            "  systemd-suspend-then-hibernate.service   loaded    inactive dead    System Suspend then Hibernate",
            "  systemd-suspend.service                  loaded    inactive dead    System Suspend",
            "  systemd-sysctl.service                   loaded    active   exited  Apply Kernel Variables",
            "  systemd-sysext.service                   loaded    inactive dead    Merge System Extension Images into /usr/ and /opt/",
            "  systemd-sysusers.service                 loaded    inactive dead    Create System Users",
            "  systemd-timedated.service                loaded    active   running Time & Date Service",
            "  systemd-timesyncd.service                loaded    active   running Network Time Synchronization",
            "  systemd-tmpfiles-clean.service           loaded    inactive dead    Cleanup of Temporary Directories",
            "  systemd-tmpfiles-setup-dev-early.service loaded    active   exited  Create Static Device Nodes in /dev gracefully",
            "  systemd-tmpfiles-setup-dev.service       loaded    active   exited  Create Static Device Nodes in /dev",
            "  systemd-tmpfiles-setup.service           loaded    active   exited  Create Volatile Files and Directories",
            "  systemd-tpm2-setup-early.service         loaded    inactive dead    TPM2 SRK Setup (Early)",
            "  systemd-tpm2-setup.service               loaded    inactive dead    TPM2 SRK Setup",
            "  systemd-udev-settle.service              loaded    inactive dead    Wait for udev To Complete Device Initialization",
            "  systemd-udev-trigger.service             loaded    active   exited  Coldplug All udev Devices",
            "  systemd-udevd.service                    loaded    active   running Rule-based Manager for Device Events and Files",
            "  systemd-update-done.service              loaded    inactive dead    Update is Completed",
            "  systemd-update-utmp-runlevel.service     loaded    inactive dead    Record Runlevel Change in UTMP",
            "  systemd-update-utmp.service              loaded    active   exited  Record System Boot/Shutdown in UTMP",
            "  systemd-user-sessions.service            loaded    active   exited  Permit User Sessions",
            "● systemd-vconsole-setup.service           not-found inactive dead    systemd-vconsole-setup.service",
            "  thermald.service                         loaded    inactive dead    Thermal Daemon Service",
            "  tpm-udev.service                         loaded    inactive dead    Handle dynamically added tpm devices",
            "● ua-auto-attach.service                   not-found inactive dead    ua-auto-attach.service",
            "  ua-reboot-cmds.service                   loaded    inactive dead    Ubuntu Pro reboot cmds",
            "  ua-timer.service                         loaded    inactive dead    Ubuntu Pro Timer for running repeated jobs",
            "● ubuntu-advantage-cloud-id-shim.service   not-found inactive dead    ubuntu-advantage-cloud-id-shim.service",
            "  ubuntu-advantage.service                 loaded    inactive dead    Ubuntu Pro Background Auto Attach",
            "  udisks2.service                          loaded    active   running Disk Manager",
            "  ufw.service                              loaded    active   exited  Uncomplicated firewall",
            "  unattended-upgrades.service              loaded    active   running Unattended Upgrades Shutdown",
            "  update-notifier-download.service         loaded    inactive dead    Download data for packages that failed at package install time",
            "  update-notifier-motd.service             loaded    inactive dead    Check to see whether there is a new version of Ubuntu available",
            "  user-runtime-dir@1002.service            loaded    active   exited  User Runtime Directory /run/user/1002",
            "  user@1002.service                        loaded    active   running User Manager for UID 1002",
            "  uuidd.service                            loaded    inactive dead    Daemon for generating UUIDs",
            "  vgauth.service                           loaded    active   running Authentication service for virtual machines hosted on VMware",
            "● zfs-mount.service                        not-found inactive dead    zfs-mount.service"
        ]
    }
    ok: [uvm27] => {
        "msg": [
            "  apparmor.service                         loaded    active   exited  Load AppArmor profiles",
            "  apport-autoreport.service                loaded    inactive dead    Process error reports when automatic reporting is enabled",
            "  apport.service                           loaded    active   exited  automatic crash report generation",
            "  apt-daily-upgrade.service                loaded    inactive dead    Daily apt upgrade and clean activities",
            "  apt-daily.service                        loaded    inactive dead    Daily apt download activities",
            "● auditd.service                           not-found inactive dead    auditd.service",
            "  blk-availability.service                 loaded    active   exited  Availability of block devices",
            "  cloud-init-local.service                 loaded    inactive dead    Cloud-init: Local Stage (pre-network)",
            "● connman.service                          not-found inactive dead    connman.service",
            "● console-screen.service                   not-found inactive dead    console-screen.service",
            "  console-setup.service                    loaded    active   exited  Set console font and keymap",
            "  cron.service                             loaded    active   running Regular background program processing daemon",
            "  dbus.service                             loaded    active   running D-Bus System Message Bus",
            "● display-manager.service                  not-found inactive dead    display-manager.service",
            "  dm-event.service                         loaded    inactive dead    Device-mapper event daemon",
            "  dmesg.service                            loaded    inactive dead    Save initial kernel messages after boot",
            "  dpkg-db-backup.service                   loaded    inactive dead    Daily dpkg database backup service",
            "  e2scrub_all.service                      loaded    inactive dead    Online ext4 Metadata Check for All Filesystems",
            "  e2scrub_reap.service                     loaded    inactive dead    Remove Stale Online ext4 Metadata Check Snapshots",
            "  emergency.service                        loaded    inactive dead    Emergency Shell",
            "● fcoe.service                             not-found inactive dead    fcoe.service",
            "  finalrd.service                          loaded    active   exited  Create final runtime dir for shutdown pivot root",
            "  fstrim.service                           loaded    inactive dead    Discard unused blocks on filesystems from /etc/fstab",
            "  fwupd-refresh.service                    loaded    inactive dead    Refresh fwupd metadata and update motd",
            "  getty-static.service                     loaded    inactive dead    getty on tty2-tty6 if dbus and logind are not available",
            "  getty@tty1.service                       loaded    active   running Getty on tty1",
            "  grub-common.service                      loaded    inactive dead    Record successful boot for GRUB",
            "  grub-initrd-fallback.service             loaded    inactive dead    GRUB failed boot detection",
            "● hv_kvp_daemon.service                    not-found inactive dead    hv_kvp_daemon.service",
            "  initrd-cleanup.service                   loaded    inactive dead    Cleaning Up and Shutting Down Daemons",
            "  initrd-parse-etc.service                 loaded    inactive dead    Mountpoints Configured in the Real Root",
            "  initrd-switch-root.service               loaded    inactive dead    Switch Root",
            "  initrd-udevadm-cleanup-db.service        loaded    inactive dead    Cleanup udev Database",
            "● iscsi-shutdown.service                   not-found inactive dead    iscsi-shutdown.service",
            "  iscsid.service                           loaded    inactive dead    iSCSI initiator daemon (iscsid)",
            "● kbd.service                              not-found inactive dead    kbd.service",
            "  keyboard-setup.service                   loaded    active   exited  Set the console keyboard layout",
            "  kmod-static-nodes.service                loaded    active   exited  Create List of Static Device Nodes",
            "  ldconfig.service                         loaded    inactive dead    Rebuild Dynamic Linker Cache",
            "  logrotate.service                        loaded    inactive dead    Rotate log files",
            "● lvm2-activation-early.service            not-found inactive dead    lvm2-activation-early.service",
            "  lvm2-lvmpolld.service                    loaded    inactive dead    LVM2 poll daemon",
            "  lvm2-monitor.service                     loaded    active   exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling",
            "  man-db.service                           loaded    inactive dead    Daily man-db regeneration",
            "  ModemManager.service                     loaded    active   running Modem Manager",
            "  modprobe@configfs.service                loaded    inactive dead    Load Kernel Module configfs",
            "  modprobe@dm_mod.service                  loaded    inactive dead    Load Kernel Module dm_mod",
            "  modprobe@drm.service                     loaded    inactive dead    Load Kernel Module drm",
            "  modprobe@efi_pstore.service              loaded    inactive dead    Load Kernel Module efi_pstore",
            "  modprobe@fuse.service                    loaded    inactive dead    Load Kernel Module fuse",
            "  modprobe@loop.service                    loaded    inactive dead    Load Kernel Module loop",
            "  motd-news.service                        loaded    inactive dead    Message of the Day",
            "  multipathd.service                       loaded    active   running Device-Mapper Multipath Device Controller",
            "  netplan-ovs-cleanup.service              loaded    inactive dead    OpenVSwitch configuration for cleanup",
            "  networkd-dispatcher.service              loaded    inactive dead    Dispatcher daemon for systemd-networkd",
            "● NetworkManager.service                   not-found inactive dead    NetworkManager.service",
            "  open-iscsi.service                       loaded    inactive dead    Login to default iSCSI targets",
            "  open-vm-tools.service                    loaded    active   running Service for virtual machines hosted on VMware",
            "● ovsdb-server.service                     not-found inactive dead    ovsdb-server.service",
            "  plymouth-quit-wait.service               loaded    active   exited  Hold until boot process finishes up",
            "  plymouth-quit.service                    loaded    active   exited  Terminate Plymouth Boot Screen",
            "  plymouth-read-write.service              loaded    active   exited  Tell Plymouth To Write Out Runtime Data",
            "  plymouth-start.service                   loaded    inactive dead    Show Plymouth Boot Screen",
            "  plymouth-switch-root.service             loaded    inactive dead    Plymouth switch root service",
            "  polkit.service                           loaded    active   running Authorization Manager",
            "  pollinate.service                        loaded    inactive dead    Pollinate to seed the pseudo random number generator",
            "● rbdmap.service                           not-found inactive dead    rbdmap.service",
            "  rc-local.service                         loaded    inactive dead    /etc/rc.local Compatibility",
            "  rescue.service                           loaded    inactive dead    Rescue Shell",
            "  rsyslog.service                          loaded    active   running System Logging Service",
            "  secureboot-db.service                    loaded    inactive dead    Secure Boot updates for DB and DBX",
            "  setvtrgb.service                         loaded    active   exited  Set console scheme",
            "  snapd.apparmor.service                   loaded    active   exited  Load AppArmor profiles managed internally by snapd",
            "  snapd.autoimport.service                 loaded    inactive dead    Auto import assertions from block devices",
            "  snapd.core-fixup.service                 loaded    inactive dead    Automatically repair incorrect owner/permissions on core devices",
            "  snapd.failure.service                    loaded    inactive dead    Failure handling of the snapd snap",
            "  snapd.recovery-chooser-trigger.service   loaded    inactive dead    Wait for the Ubuntu Core chooser trigger",
            "  snapd.seeded.service                     loaded    active   exited  Wait until snapd is fully seeded",
            "  snapd.service                            loaded    active   running Snap Daemon",
            "  snapd.snap-repair.service                loaded    inactive dead    Automatically fetch and run repair assertions",
            "  snapd.system-shutdown.service            loaded    inactive dead    Ubuntu core (all-snaps) system shutdown helper setup service",
            "  ssh.service                              loaded    active   running OpenBSD Secure Shell server",
            "  sysstat-collect.service                  loaded    inactive dead    system activity accounting tool",
            "  sysstat-summary.service                  loaded    inactive dead    Generate a daily summary of process accounting",
            "  sysstat.service                          loaded    active   exited  Resets System Activity Logs",
            "  systemd-ask-password-console.service     loaded    inactive dead    Dispatch Password Requests to Console",
            "  systemd-ask-password-plymouth.service    loaded    inactive dead    Forward Password Requests to Plymouth",
            "  systemd-ask-password-wall.service        loaded    inactive dead    Forward Password Requests to Wall",
            "  systemd-battery-check.service            loaded    inactive dead    Check battery level during early boot",
            "  systemd-binfmt.service                   loaded    active   exited  Set Up Additional Binary Formats",
            "  systemd-bsod.service                     loaded    inactive dead    Displays emergency message in full screen.",
            "  systemd-firstboot.service                loaded    inactive dead    First Boot Wizard",
            "  systemd-fsck-root.service                loaded    inactive dead    File System Check on Root Device",
            "  systemd-fsckd.service                    loaded    inactive dead    File System Check Daemon to report status",
            "  systemd-hibernate-resume.service         loaded    inactive dead    Resume from hibernation",
            "  systemd-hibernate.service                loaded    inactive dead    System Hibernate",
            "  systemd-hwdb-update.service              loaded    inactive dead    Rebuild Hardware Database",
            "  systemd-hybrid-sleep.service             loaded    inactive dead    System Hybrid Suspend+Hibernate",
            "  systemd-initctl.service                  loaded    inactive dead    initctl Compatibility Daemon",
            "  systemd-journal-catalog-update.service   loaded    inactive dead    Rebuild Journal Catalog",
            "  systemd-journal-flush.service            loaded    active   exited  Flush Journal to Persistent Storage",
            "  systemd-journald.service                 loaded    active   running Journal Service",
            "  systemd-logind.service                   loaded    active   running User Login Management",
            "  systemd-machine-id-commit.service        loaded    inactive dead    Commit a transient machine-id on disk",
            "  systemd-modules-load.service             loaded    active   exited  Load Kernel Modules",
            "  systemd-networkd-wait-online.service     loaded    active   exited  Wait for Network to be Configured",
            "  systemd-networkd.service                 loaded    active   running Network Configuration",
            "● systemd-oomd.service                     not-found inactive dead    systemd-oomd.service",
            "  systemd-pcrmachine.service               loaded    inactive dead    TPM2 PCR Machine ID Measurement",
            "  systemd-pcrphase-initrd.service          loaded    inactive dead    TPM2 PCR Barrier (initrd)",
            "  systemd-pcrphase-sysinit.service         loaded    inactive dead    TPM2 PCR Barrier (Initialization)",
            "  systemd-pcrphase.service                 loaded    inactive dead    TPM2 PCR Barrier (User)",
            "  systemd-pstore.service                   loaded    inactive dead    Platform Persistent Storage Archival",
            "  systemd-random-seed.service              loaded    active   exited  Load/Save OS Random Seed",
            "  systemd-remount-fs.service               loaded    active   exited  Remount Root and Kernel File Systems",
            "  systemd-repart.service                   loaded    inactive dead    Repartition Root Disk",
            "  systemd-resolved.service                 loaded    active   running Network Name Resolution",
            "  systemd-rfkill.service                   loaded    inactive dead    Load/Save RF Kill Switch Status",
            "  systemd-soft-reboot.service              loaded    inactive dead    Reboot System Userspace",
            "  systemd-suspend-then-hibernate.service   loaded    inactive dead    System Suspend then Hibernate",
            "  systemd-suspend.service                  loaded    inactive dead    System Suspend",
            "  systemd-sysctl.service                   loaded    active   exited  Apply Kernel Variables",
            "  systemd-sysext.service                   loaded    inactive dead    Merge System Extension Images into /usr/ and /opt/",
            "  systemd-sysusers.service                 loaded    inactive dead    Create System Users",
            "  systemd-timedated.service                loaded    active   running Time & Date Service",
            "  systemd-timesyncd.service                loaded    active   running Network Time Synchronization",
            "  systemd-tmpfiles-clean.service           loaded    inactive dead    Cleanup of Temporary Directories",
            "  systemd-tmpfiles-setup-dev-early.service loaded    active   exited  Create Static Device Nodes in /dev gracefully",
            "  systemd-tmpfiles-setup-dev.service       loaded    active   exited  Create Static Device Nodes in /dev",
            "  systemd-tmpfiles-setup.service           loaded    active   exited  Create Volatile Files and Directories",
            "  systemd-tpm2-setup-early.service         loaded    inactive dead    TPM2 SRK Setup (Early)",
            "  systemd-tpm2-setup.service               loaded    inactive dead    TPM2 SRK Setup",
            "  systemd-udev-settle.service              loaded    inactive dead    Wait for udev To Complete Device Initialization",
            "  systemd-udev-trigger.service             loaded    active   exited  Coldplug All udev Devices",
            "  systemd-udevd.service                    loaded    active   running Rule-based Manager for Device Events and Files",
            "  systemd-update-done.service              loaded    inactive dead    Update is Completed",
            "  systemd-update-utmp-runlevel.service     loaded    inactive dead    Record Runlevel Change in UTMP",
            "  systemd-update-utmp.service              loaded    active   exited  Record System Boot/Shutdown in UTMP",
            "  systemd-user-sessions.service            loaded    active   exited  Permit User Sessions",
            "● systemd-vconsole-setup.service           not-found inactive dead    systemd-vconsole-setup.service",
            "  thermald.service                         loaded    inactive dead    Thermal Daemon Service",
            "  tpm-udev.service                         loaded    inactive dead    Handle dynamically added tpm devices",
            "● ua-auto-attach.service                   not-found inactive dead    ua-auto-attach.service",
            "  ua-reboot-cmds.service                   loaded    inactive dead    Ubuntu Pro reboot cmds",
            "  ua-timer.service                         loaded    inactive dead    Ubuntu Pro Timer for running repeated jobs",
            "● ubuntu-advantage-cloud-id-shim.service   not-found inactive dead    ubuntu-advantage-cloud-id-shim.service",
            "  ubuntu-advantage.service                 loaded    inactive dead    Ubuntu Pro Background Auto Attach",
            "  udisks2.service                          loaded    active   running Disk Manager",
            "  ufw.service                              loaded    active   exited  Uncomplicated firewall",
            "  unattended-upgrades.service              loaded    active   running Unattended Upgrades Shutdown",
            "  update-notifier-download.service         loaded    inactive dead    Download data for packages that failed at package install time",
            "  update-notifier-motd.service             loaded    inactive dead    Check to see whether there is a new version of Ubuntu available",
            "  user-runtime-dir@1002.service            loaded    active   exited  User Runtime Directory /run/user/1002",
            "  user@1002.service                        loaded    active   running User Manager for UID 1002",
            "  uuidd.service                            loaded    inactive dead    Daemon for generating UUIDs",
            "  vgauth.service                           loaded    active   running Authentication service for virtual machines hosted on VMware",
            "● zfs-mount.service                        not-found inactive dead    zfs-mount.service"
        ]
    }
 
    PLAY RECAP *************************************************************************************************************************************************************************
    uvm26                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
    uvm27                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0