Skip to content

uname.yml #1

@berkbenzer

Description

@berkbenzer
  • name: test playbook
    user: flickerbox
    hosts: all

    tasks:

    # it is possible to save the result of any command in a named register.  This variable will be made
    # available to tasks and templates made further down in the execution flow.
    
    - shell: uname -a
      ignore_errors: yes
      register: uname_result
      
    - debug: 
          msg: "{{ uname_result.stdout }}"      ##should be like this
    

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