include when and variables and Friday and I don't even

26 views
Skip to first unread message

br...@cicayda.com

unread,
Oct 24, 2014, 4:54:20 PM10/24/14
to ansible...@googlegroups.com
I have a playbook.  It's got includes, and tags, and it works.  But when I introduce a when it fails.  And I'm too slow this long Friday to get what's wrong.


Perhaps I'm going about this the wrong way.

I have an existing role (call it 'sftp') that - with tags - configures the host, and maintains the user accounts.

What I want is to have a playbook that, using the same variables in the role, simply creates 'a' user.

See the gist - I'm probably going about this in the dumbest way possible but don't see how to make it smarter.

~brian

Michael DeHaan

unread,
Oct 24, 2014, 8:06:36 PM10/24/14
to ansible...@googlegroups.com
I think the key is here:

- include: prepare.yml, tags: ['prepare']

Where in your copy and paste you have it starting with a "{", this is not the same as in your error message,
so I think the actual in the file might not match what you typed.



--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/de5b4e74-cb95-480b-9c6d-40ae2db866a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages