Re: [ansible-project] Issue with local_action copy content

9 views
Skip to first unread message

Kai Stian Olstad

unread,
Nov 20, 2018, 3:15:46 AM11/20/18
to ansible...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages