Issue in download file from FTP

Hi Everyone,
I am facing issue in executing roles using some shell script.
the task is

  1. create one directory on remote host /installer/NAM
  2. copy the installable from ftp (ip:172.19.54.10 username:-admin password abc123 ).
  3. copy the installable at /installer/NAM
  4. untar the installable
  5. remove the installable file
    6.execute the install.sh
    below is the YAML please let me what is wrong in it i am unable to download file and subsequent steps.
    Kindly reply ASAP or if some one have any sample YAML to download from FTP please share with me.

–YAML Begin–

Hi Naeem,

The Syntax error thrown is due to incorrect indentation in below block of code.

Every “-” in YAML starts a new element and all the elements must be equally indented. In your YAML, there is an extra indent before “- name: Download File From FTP”.
Also, the “url” key of get_url module should be further indented to reflect correct mapping. This is why the “mapping values are not allowed in this context” error message was shown.

So the correct YAML code would be as shown below:

`

Hi Shivharsh,
I tested the YAML syntax online it is showing correct.Kindly suggest the way to correct it
here is YAML