Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Looks like your awk command is malformed. If I have to guess you need to escape the double quotes in the awk command. Also, I think you need a comma after the "aladmin show" $ ansible oamvip -i /storage/inventory/None/${myvnf}hosts --become -m shell -a "/usr/sbin/aladmin list | grep "PartitionUsage" | awk '{ print \"aladmin show \", \$2 | \"sh\"}'" Commented Nov 19, 2021 at 19:49
  • @ventsyv Without the comma awk just combines the arguments to print. With the comma they get separated by OFS (space). Commented Nov 19, 2021 at 20:00
  • @HaukeLaging My awk is very rusty... Commented Nov 19, 2021 at 21:12