Comments on: How to Create Ansible Plays and Playbooks – Part 5 https://www.tecmint.com/create-ansible-plays-and-playbooks/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 27 Apr 2021 08:09:57 +0000 hourly 1 By: James Kiarie https://www.tecmint.com/create-ansible-plays-and-playbooks/comment-page-1/#comment-1482225 Tue, 27 Apr 2021 08:09:57 +0000 https://www.tecmint.com/?p=35176#comment-1482225 In reply to Craig.

Hey Craig,

The indentation of the debug module should be the same as that of the “- name” parameter. They should appear in the same vertical alignment. Please check on that.

]]>
By: Craig https://www.tecmint.com/create-ansible-plays-and-playbooks/comment-page-1/#comment-1480317 Fri, 23 Apr 2021 20:30:49 +0000 https://www.tecmint.com/?p=35176#comment-1480317 Hello, This code doesn’t seem to work as-is. I thought you might like to know.

Example 2: Check Uptime of Remote Linux

---
 - name: Check the remote host uptime
    hosts: servers
    tasks:
      - name: Execute the Uptime command over Command module
        register: uptimeoutput
        command: "uptime"

- debug:
          var: uptimeoutput.stdout_lines
]]>