2 ms·
In that case, you can use YAML comments rather than ansible names. It makes it much more clear that it's optional, and you get the actual code in the log rath
by bryanlarsen 13y ago
In that case, you can use YAML comments rather than ansible names. It makes it much more clear that it's optional, and you get the actual code in the log rather than the name/comment.
- mpdehaan2 13y agoAnsible actually encourages the use of the names because they show up as task headers. These are especially valuable when managing a large number of hosts.
- bryanlarsen 13y agoThat's exactly why I actively discourage the use of names. I'd much rather see "apt: pkg=foo" than "Ensure foo is installed" in my logs. Especially when I have a large number of hosts.