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
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
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).
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
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
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
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.
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
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
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
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
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,
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
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
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
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
16 matches
Mail list logo