On 20.11.2018 08:10, Vamsi Krishna wrote:
HI All,

I am developing below play for patching but stuck with local action copy
content module. Please let me know what I am missing here

Code:-
---
- hosts: "{{ host }}"
  become: yes
  become_method: sudo
  tasks:
    - name: Running prepatch info commands
      shell: |
        echo -e "\nuname -a"
        echo "========"
        uname -a
        echo -e "\nrunlevel"
        echo "========"
        runlevel
    register: prepatch

register: is indentation to little, you need to move it two spaces to the right so is align with name: and shell:


--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/85fec97107de6b3d5da24e8f15db5755%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to