Skip to content

Book Errata: Page 8, "ansible example -a "free -m" -u [username]" command #217

@ghost

Description

The Problem

On the top of page 8 you give the following command: ansible example -a "free -m" -u [username]. The text below it states:

"In this example, we quickly see memory usage (in a human readable format) on all the servers (for now, just one) in the example group."

Below is the output of the command in my environment:
image
To my eye, the output does not appear to be human-readable.

The Solution

For the command output to be human-readable, I believe you have the wrong flag and instead the command should be the following: ansible example -a "free -h" -u [username]. Below is the output of the above command:
image
Also, I'm not sure if you care about this or not, but grammatically "human readable" might need to be changed to "human-readable" (or at least says Grammarly lol).

My Setup

I am using version 1.21 of the book and version 2.9.6 of ansible. I have a Ubuntu 18.04 Desktop and Ubuntu 18.04 Server VM setup for testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions