[ansible-project] Re: Managing Windows Host?

2019-10-07 Thread Stephen Feyrer
Hi Jon, The link you provided has worked wonders, I have found 'win_feature' module does more than I need. -- Thank you. Stephen. On Friday, 4 October 2019 21:38:16 UTC+1, J Hawkesworth wrote: > > Well to get rid the warning, remove the "{{ and }} " from your 'when' > clause. The 'when'

[ansible-project] Re: Managing Windows Host?

2019-10-04 Thread 'J Hawkesworth' via Ansible Project
Well to get rid the warning, remove the "{{ and }} " from your 'when' clause. The 'when' directive is a bit different from other places where you use jinja2 expressions as the "{{ and }}" are implicit. Although this might seem a bit inconsistent, it does result in easier to read tasks. If

[ansible-project] Re: Managing Windows Host?

2019-10-04 Thread Stephen Feyrer
Hi, On Friday, 4 October 2019 11:46:27 UTC+1, Stephen Feyrer wrote: > > Hi everyone, > > The goal is to make the host reboot only if the ansible-fact > 'reboot_pending' is true. This is achieved but generates a warning, is > there a better way of doing this? > > Just to be clear, I don't