Ansible shows error that says missing ':' even when it is already present

22 views
Skip to first unread message

Vikram S

unread,
Mar 26, 2021, 9:13:32 AM3/26/21
to Ansible Project

Please look at the screenshot in below link. Ansible shows an error that 'could not find expected :'. However as shown in the screenshot, the palce where it indicates an error, that palce already has the ':'. Why does ansible show this?

https://drive.google.com/file/d/12JaxoVzORLBu21WrIhFSa-tndumTkX79/view?usp=sharing

Lars Liedtke

unread,
Mar 26, 2021, 9:18:02 AM3/26/21
to ansible...@googlegroups.com

I cannot tell for sure without seeing the code of this task, but could it perhaps be, that you forgot a "-" at the before "register"?

Am 26.03.21 um 14:13 schrieb Vikram S:

Please look at the screenshot in below link. Ansible shows an error that 'could not find expected :'. However as shown in the screenshot, the palce where it indicates an error, that palce already has the ':'. Why does ansible show this?

https://drive.google.com/file/d/12JaxoVzORLBu21WrIhFSa-tndumTkX79/view?usp=sharing

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/507c763f-5a09-4832-911b-d7886c5c4ec5n%40googlegroups.com.
-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a	
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
in...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

Abhijeet Kasurde

unread,
Mar 29, 2021, 12:54:41 AM3/29/21
to ansible...@googlegroups.com
Hi Vikram,

Please include the full playbook.



--
Thanks,
Abhijeet Kasurde

Vikram S

unread,
Mar 29, 2021, 4:16:24 AM3/29/21
to Ansible Project

Hi,

'-' shouldn't be used for register module. I later found that there was an empty space after the line which was causing the error.
Reply all
Reply to author
Forward
0 new messages