The first line od yaml file is :
---


Apolinar Martinez Melchor
RHCP 100-229-053
<https://www.redhat.com/rhtapps/certification/verify/?certId=100-229-053>

Cel. +52 1 55 1507 1043
e-mail: [email protected]


El lun., 10 dic. 2018 a las 15:36, Fernando William (<
[email protected]>) escribió:

> Hi, when i try to run a playbok in a docker role, i´m advised about syntax
> erro.
> someone could help me with my yml?
> the /roles/docker/tasks/main.yml is:
>
> #start
> # tasks file for docker
> - name: Grant Docker Instalation
>   apt: name={{ item }} update_cache=yes state=present
>   with_items:
>     - apt-transport-https
>     - ca-certificates
>     - curl
>     - software-properties-common
>
> - apt_key:
>     url= "https://download.docker.com/linux/ubuntu/gpg";
>     state:present
>
> - apt_repository:
>     repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{
> ansible$
>     state:present
>
> - name: Installing Docker
>   apt: name=docker-ce update_cache=yes state=present
> #end
>
>
>  the error is:
> ERROR! Syntax Error while loading YAML.
>
>
> The error appears to have been in
> '/etc/ansible/roles/docker/tasks/main.yml': line 3, column 1, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
> # tasks file for docker
> - name: Grant Docker Instalation
> ^ here
>
>
>
> --
> 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/f9501fcd-3370-4b4d-93d1-68dfe7b3bd15%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f9501fcd-3370-4b4d-93d1-68dfe7b3bd15%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADXjZM6Uzw%2ByD0GU67jE-TUaFmVbk33rNfbWknPdVi2KsXFBYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to