[ansible-project] Hide secrets from output

2018-03-24 Thread Trond Hindenes
As far as I can see, some modules implement a special "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER" for some attributes, which cause them to be hidden from output, which is great. However, I'd like to control this outside of modules. A use case is for example a playbook doing things: - name: Get AWS c

[ansible-project] Conditional problems with Ansible 2.5.0

2018-03-24 Thread Trond Hindenes
I have the following steps in a playbook: - name: check if .net 4.7.1 is installed script: check_net_version.ps1 "4.7.1" register: net471result changed_when: false - name: Install .Net 4.7.1 win_chocolatey: name: dotnet4.7.1 register: net471_exit_code failed_when: net471_exit_code.rc != 0 and net4

[ansible-project] Re: Conditional problems with Ansible 2.5.0

2018-03-24 Thread Trond Hindenes
I've also tried the "dict-format": net471_exit_code['rc'] is defined But the same thing happens. I almost get the feeling that Ansible evaluates the entire "chain", which is a problem with potentially undefined variable (that's why we test the " is defined" first, to make the evaluation halt).

Re: [ansible-project] Conditional problems with Ansible 2.5.0

2018-03-24 Thread Kai Stian Olstad
On Saturday, 24 March 2018 10.45.29 CET Trond Hindenes wrote: > I have the following steps in a playbook: > - name: check if .net 4.7.1 is installed > script: check_net_version.ps1 "4.7.1" > register: net471result > changed_when: false > > - name: Install .Net 4.7.1 > win_chocolatey: > name: dotne

Re: [ansible-project] Conditional problems with Ansible 2.5.0

2018-03-24 Thread Trond Hindenes
Thanks Kai, Good point - I may have been looking at this all wrong, and not able to repro just playing around with basic set_fact/conditionals playbooks. I'll keep researching :-) thanks again! -- You received this message because you are subscribed to the Google Groups "Ansible Project" gr

Re: [ansible-project] Conditional problems with Ansible 2.5.0

2018-03-24 Thread Trond Hindenes
about win_chocolatey: It's strange that it doesnt emit an "rc" anymore, it certainly doesn't match the documentation: http://docs.ansible.com/ansible/2.5/modules/win_chocolatey_module.html -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

Re: [ansible-project] Conditional problems with Ansible 2.5.0

2018-03-24 Thread Trond Hindenes
oh, it only emits it on change. Not sure how I feel about that. -- 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-project+unsubscr...@googlegroups.com.

[ansible-project] Re: Ansible with multi boot machines - Ubuntu, Server 2016 and Win 10 Pro Machine clusters

2018-03-24 Thread Trond Hindenes
I don't think you'll get much help here until you figure out how to do it "manually" first. That said, this whole setup seems like a nightmare. Why not just vms with _one_ os and spin them up/down as needed? -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: Install/Configure WAMP server

2018-03-24 Thread Trond Hindenes
product_id is documented at http://docs.ansible.com/ansible/latest/win_package_module.html -- 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-project+un

[ansible-project] Re: Task Git Clone Returns Fail when repository cloned

2018-03-24 Thread Mike Kilmer
The issue in this case was caused by a git submodule to which I hadn't committed and push my latest code changes. I committed and pushed to the submodule repo and the problem went away. I discovered this by logging into the server and running `git status` within the repository codebase. -- You

Re: [ansible-project] Re: Ansible 2.5.0 Final is available

2018-03-24 Thread Tony Chia
Thank you Kai. I found the new documentation by searching "ansible new-module-name" On Friday, March 23, 2018 at 3:22:16 PM UTC-7, Kai Stian Olstad wrote: > > On Friday, 23 March 2018 22.46.29 CET Tony Chia wrote: > > According to the changlog, the following new windows modules are > available

[ansible-project] How to exclude a module in ansible 2.5?

2018-03-24 Thread Tony Chia
In the ansible 2.5 changelog, it mentioned the following - Added a configuration file that a site administrator can use to specify modules to exclude from being used. However when I search for the word "exclude" on https://docs.ansible.com/ansible/devel/reference_appendices/config.html,

Re: [ansible-project] How to exclude a module in ansible 2.5?

2018-03-24 Thread Matt Martz
See https://docs.ansible.com/ansible/devel/reference_appendices/config.html#plugin-filters-cfg As well as the example at: https://github.com/ansible/ansible/blob/340a7be7c382d441475b64adbfd65e605786cd4f/examples/plugin_filters.yml On Sat, Mar 24, 2018 at 2:19 PM, Tony Chia wrote: > In the ansib

[ansible-project] Re: Hide secrets from output

2018-03-24 Thread Tony Chia
You can use a custom callback plugin to mask the password. An example can be found at https://serverfault.com/questions/754860/how-can-i-reduce-the-verbosity-of-certain-ansible-tasks-to-not-leak-passwords-in/897480#897480?newreg=03468dbbc6174dbc9d04455112ec29a7 On Saturday, March 24, 2018 at

[ansible-project] Re: Hide secrets from output

2018-03-24 Thread Trond Hindenes
Thanks, I'll do that! On Saturday, March 24, 2018 at 10:17:07 PM UTC+1, Tony Chia wrote: > > You can use a custom callback plugin to mask the password. An example can > be found at > https://serverfault.com/questions/754860/how-can-i-reduce-the-verbosity-of-certain-ansible-tasks-to-not-leak-pas

Re: [ansible-project] Re: Cannot install ansible tools or development modules on windows as of 2.4

2018-03-24 Thread Bill Brothers
Jordan, Thanks for the update. I certainly understand the perspective (I've been a Linux guy for many years). I may have to do my custom module development remotely. To answer Josh's question (which wasn't dumb), That is what I am currently doing (working via ssh on a text-only environment. However