Re: [ansible-devel] Become plugin

2020-03-30 Thread Brian Coca
It needs a specific subdir for each plugin type, otherwise there would be name conflicts across plugins. See https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#local-plugins -- -- Brian Coca -- You received this message because you are subscribed to the

Re: [ansible-devel] Ansible - Unable to reach the host getting Errno 101 Network is unreachable

2020-03-30 Thread Brian Coca
not a development question. Use ansible-project ML or go to #ansible on freenode. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [ansible-devel] print volume group with highest number

2020-06-17 Thread Brian Coca
Something like this will sort the keys and use the last one. - debug: msg={{ansible_lvm.vgs[(ansible_lvm.vgs.keys()|sorted|list)[-1]]}} -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe

Re: [ansible-devel] Multiple vault password

2020-07-27 Thread Brian Coca
Yes, here are the docs: https://docs.ansible.com/ansible/latest/user_guide/vault.html#multiple-vault-passwords -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop

Re: [ansible-devel] inheriting from other modules

2021-01-22 Thread Brian Coca
Just to confirm, what Andreas describes is correct, any 'shared' code must be in module_utils, modules cannot rely on other module's code as ONLY the current module code (+ module_utils references) is shipped to the remote. -- -- Brian Coca -- You received this message

Re: [ansible-devel] How do you find which module version is included with an Ansible release

2021-03-16 Thread Brian Coca
Up to 2.9 there is no independent version of modules included in Ansible, after 2.10 and moving into collections you can see the 'collection version' .. but no module version yet. -- ------ Brian Coca -- You received this message because you are subscribed to the Google Groups

Re: [ansible-devel] Do we need StrageyBase._results_lock?

2021-03-24 Thread Brian Coca
a loop of 100 items. > -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com.

Re: [ansible-devel] "yes" as string (not boolean)

2021-05-27 Thread Brian Coca
Depends, this can happen at many points and for diff reasons, in general `|string` filter when you consume it ensures it is a string, if it is happening at YAML boundry quote it or use !!str -- Brian Coca -- You received this message because you are subscribed to the Google Groups

Re: [ansible-devel] "yes" as string (not boolean)

2021-05-27 Thread Brian Coca
https://hitchdev.com/strictyaml/why/implicit-typing-removed/ <= its the opposite of yours, but same issue -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and s

Re: [ansible-devel] Fixing architecture-specific gaps in ansible core facts?

2021-06-04 Thread Brian Coca
sible for the play's gather_facts (normally still calls setup module) - gather_facts supports configurable set of modules (network_os resolution already built in) - gather_facts can run multiple modules in parallel -- -- Brian Coca -- You received this message because you are

Re: [ansible-devel] Fixing architecture-specific gaps in ansible core facts?

2021-06-07 Thread Brian Coca
h ignore, it is very dependant on the method/code used to do the gathering, which can vary by platform, OS, distro, distro version, etc. I have not found a good way to handle that yet. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-devel] Fixing architecture-specific gaps in ansible core facts?

2021-06-07 Thread Brian Coca
e can also affect the controller by occupying the forks for too long and delaying the play in general. -- ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving ema

Re: [ansible-devel] How to document support for check mode for a module

2021-06-09 Thread Brian Coca
Just added this for 2.12 (still not final) https://github.com/ansible/ansible/pull/73707 Also see https://github.com/ansible/ansible/pull/74331 -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To u

Re: [ansible-devel] Maximum stdout_lines in ansible

2021-06-24 Thread Brian Coca
no actual limit in code, you might be limited by resources or other external factors. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from i

Re: [ansible-devel] python api return code. when task fails

2021-06-24 Thread Brian Coca
tasks do not use return codes, their status is reflected in the return data dictionary as keys. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emai

Re: [ansible-devel] How to define hosts when you integrate Ansible into external system

2021-07-02 Thread Brian Coca
You also have --limit , which avoids playbook rewrites and per run custom inventories -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from i

Re: [ansible-devel] Machine readable duration

2021-08-03 Thread Brian Coca
I was not aware of the datetime bug (was thinking to_datetime & strftime), but it is still simple to do in jinja: - debug: msg='{{seconds}}' vars: d: "{{res['delta'].split(':')}}" seconds : "{{ d[0]|int * 3600 + d[1]|int * 60

Re: [ansible-devel] When is ansible_mounts defined?

2021-08-26 Thread Brian Coca
ways there, inject just adds the ansible_mounts alias) To find out what exactly is happening i recommend running fact gathering directly on the targets that you see are missing ansible_mounts (unless it is the 'inject' issue, which is controller configuration). -- -- Brian Co

Re: [ansible-devel] When is ansible_mounts defined?

2021-08-26 Thread Brian Coca
;mount + error message specific to each mount. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve

Re: [ansible-devel] When is ansible_mounts defined?

2021-08-26 Thread Brian Coca
ansible-core 2.11 and 2.12 have many of the improvements -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ans

Re: [ansible-devel] Ansible 2.9 as "critical fixes only", however, Ansible 2.9 as the only widely available distributed release?

2021-10-28 Thread Brian Coca
ned documentation, it is in git after all) and I'm confident that our record would speak against any perceived bias, as long as you are willing to examine all the facts. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-devel] Classifying authentication errors within modules as an error instead of unreachable

2021-11-04 Thread Brian Coca
ping['msg'] for the specific auth errors you can rescule rescue: - action: do stuff here -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving

Re: [ansible-devel] Make an SSH connection and run a command from within the playbook

2022-01-27 Thread Brian Coca
The cliconf/network_cli plugins do this, they handle the connection internally in the module and use ssh/paramiko/libssh to interact with the target -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development"

Re: [ansible-devel] Make an SSH connection and run a command from within the playbook

2022-01-28 Thread Brian Coca
twork.html main dev guide https://docs.ansible.com/ansible/latest/dev_guide/index.html more communication channels (see network working group, they are most likely to have better answers about this type of development ) https://docs.ansible.com/ansible/latest/community/communication.html ------

Re: [ansible-devel] KeyError: 'module_blacklist'

2022-02-21 Thread Brian Coca
you have `module_rejectlist`, but it requires `module_blacklist` -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [ansible-devel] Merging GPLv3 and AGPL licensing in a module development

2022-04-27 Thread Brian Coca
. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: [ansible-devel] Looking for generic execute "once-only" practise for Automations

2022-05-11 Thread Brian Coca
Many ways, just an example: - in a handler update a host_vars/.yml with the list of users already synced, notify when sync tasks run/change - add to sync role/block/tasks a conditional based on the variable cdreated `when: username not in already_processed_users` -- -- Brian Coca

[ansible-devel] Re: A more extensible ActionModule: Split _configure_module

2022-07-12 Thread Brian Coca
Actually I was already thinking of spliting _modify_module, for one, it should not need/handle/know about become_kwargs and we should eliminate the passing of these, which is kind of the opposite direction of your proposal. As for action plugins, they already do too much and have too much in

Re: [ansible-devel] Support for functions for complex expressions

2022-07-13 Thread Brian Coca
Jinja2 has this already, macros https://jinja.palletsprojects.com/en/2.10.x/templates/#macros -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emai

Re: [ansible-devel] Re: A more extensible ActionModule: Split _configure_module

2022-07-13 Thread Brian Coca
most other use cases. ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To vie

Re: [ansible-devel] Re: A more extensible ActionModule: Split _configure_module

2022-07-14 Thread Brian Coca
ins themselves at the remote via a temporary agent, but then this also limits us to python in many respects and removes several abilities (changing become/connection/interpreter settings per loop item, for example). -- Brian Coca -- You received this message because you are subscribed to

Re: [ansible-devel] Support for functions for complex expressions

2022-07-14 Thread Brian Coca
s: testlist_initial_value: [10,11] merge_pattern: '^.+_merge_list' a_merge_list: [1,2,3] b_merge_list: [4,5,6] -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscr

Re: [ansible-devel] Share data between lookup plugin instances

2022-08-03 Thread Brian Coca
, but each task/host has it's own fork. ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@

Re: [ansible-devel] how to read the ansible.cfg file variables in ansible custom modules

2022-08-03 Thread Brian Coca
It is possible, just not via the variable, do `import sys; sys.version_info < (3, 0)`, since that will reflect the python the script is running under. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. T

Re: [ansible-devel] edit/create encrypted vars in python script (vault encrypt_string)

2022-08-31 Thread Brian Coca
Modules should not have direct access to vault secrets, but you can provide them to module options via the unvault/vault filters: (last ones in section) https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#hashing-and-encrypting-strings-and-passwords -- -- Brian Coca

Re: [ansible-devel] how to run command that cannot create files?

2022-11-08 Thread Brian Coca
other side effects that you can track, but hard to build them all into the command/shell modules (open port/service running/package installed/etc) but there are plenty of other actions that can query this. -- -- Brian Coca -- You received this message because you are subscribed to the G

Re: [ansible-devel] how to run command that cannot create files?

2022-11-08 Thread Brian Coca
Also, if the built in command does not do exactly what you want, you are free to create your own custom version, it just not make sense for this in the core offering. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Develo

Re: [ansible-devel] YAML File check

2023-01-12 Thread Brian Coca
--syntax-check playbook.yml `, for vars files i would use `ansbile -m include_vars `, for roles `ansbile -m import_role ...` -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this grou

Re: [ansible-devel] The future of deep collection folder structures

2023-02-21 Thread Brian Coca
collection. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this dis

Re: [ansible-devel] ansible roles and custom module structure

2023-02-21 Thread Brian Coca
with something unusable, hence the limitation to only depend on code in module_utils/. https://docs.ansible.com/ansible/latest/reference_appendices/module_utils.html -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development&qu

Re: [ansible-devel] ansible roles and custom module structure

2023-02-21 Thread Brian Coca
sorry, wrong link before https://docs.ansible.com/ansible/latest/dev_guide/developing_module_utilities.html -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Brian Coca
symlinks do work, but you still need an ansible_collections/ dir before your collection -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails fro

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Brian Coca
ls -l ~/.ansible/collections/ansible_collections/ total 20 lrwxrwxrwx 1 bcoca bcoca 54 Oct 7 2021 bcoca -> /home/bcoca/work/collections/ansible_collections/bcoca On Wed, Feb 22, 2023 at 3:45 PM Brian Coca wrote: > > symlinks do work, but you still need an ansible_collections/ dir

Re: [ansible-devel] Inventory group not getting created when using add_host and one of the iteration of task fails.

2023-03-06 Thread Brian Coca
it is not really effective until the 'next play' as modifying the current play's data is very problematic. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this

Re: [ansible-devel] ansible_failed_task logs private variables

2023-06-13 Thread Brian Coca
es that had been fed into it. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.c

Re: [ansible-devel] sshconnection vs terminal vs httpapi vs shell plugins

2023-07-06 Thread Brian Coca
against the terminal plugin). -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com.

Re: [ansible-devel] sshconnection vs terminal vs httpapi vs shell plugins

2023-07-10 Thread Brian Coca
evant advice. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view thi

Re: [ansible-devel] Re: Using Ansible how to connect Oracle DB on Linux & run command "show pdb" to display oracle pluggable DB, "shutdown immediate" to stop DB and start DB

2023-07-24 Thread Brian Coca
' for more information. Looks like typo in a shell command/script (meant `cat`?) or `ucat` is not in the PATH -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group an

Re: [ansible-devel] Accessing inventory variables from custom connection plugin

2023-08-16 Thread Brian Coca
riables you need. If this was possible in 2.9, which it was not, it would have been a major bug and security issue. The 'working' example you show seems to get a full dictionary of the parameters passed to the module via the 'endpoint' option, I don't see any other w

Re: [ansible-devel] Accessing inventory variables from custom connection plugin

2023-08-16 Thread Brian Coca
and cloud libraries. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com.

Re: [ansible-devel] Re: [FEATURE REQUEST] Custom path for group_vars and host_vars in ansible.cfg

2024-07-26 Thread Brian Coca
with core in favor of your own. -- ------ Brian Coca (he/him/yo) -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@

Re: [ansible-devel] File lookup plugin behavior concerning quotes @abadger, @bcoca

2016-05-05 Thread Brian Coca
which will automatically be transformed to JSON. This will effectively be the same as 'the better modules' I mention above and will be 'transparent' to users, eventually eliminating the problem and confusion. -- Brian Coca -- You received this message because you are su

Re: [ansible-devel] File lookup plugin behavior concerning quotes @abadger, @bcoca

2016-05-06 Thread Brian Coca
*sigh* that is new one ... the module is doing a check it shouldn't, we need to fix that in the module itself. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and

Re: [ansible-devel] LXD module development

2016-05-17 Thread Brian Coca
There is one in the queue already: https://github.com/ansible/ansible-modules-extras/pull/2208 ​I personally would separate container from image management.​ -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development"

Re: [ansible-devel] How to specify explicit version requirements for external module

2016-06-03 Thread Brian Coca
Either is fine, currently this is only for display, so whatever conveys the message. We might change this in the future as we automate validation of requirements. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development"

Re: [ansible-devel] Re: How should I avoid skipped tasks from displaying on the console

2016-06-06 Thread Brian Coca
the skippy is the one which ONLY hides skipped tasks, actionable also hides OK tasks. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [ansible-devel] Re: How should I avoid skipped tasks from displaying on the console

2016-06-06 Thread Brian Coca
task headers get printed before a task gets attempted for any of the hosts, the callback hides the skipped hosts but cannot 'unprint' the headers if all hosts skip the task. The only way to do that would be to buffer the output and wait until all hosts skip. ------ Brian Coc

Re: [ansible-devel] Any bug fix release 2.1.0.1 in plans?

2016-06-07 Thread Brian Coca
the RC1 for 2.1.1 should be out soon. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@google

Re: [ansible-devel] How to use display.vvv in an Ansible module?

2016-06-10 Thread Brian Coca
return the info or not. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For mo

Re: [ansible-devel] replace a word in a file with o/p of command

2016-06-10 Thread Brian Coca
you probably want hostnameoutput.stdout -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve

Re: [ansible-devel] Migrating to Ansible v2.0 API --> What is this Options namedtuple?

2016-06-13 Thread Brian Coca
They are complementary, the Options tuple is simulating 'command line options', which still get overridden by connection variables. ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubsc

Re: [ansible-devel] Display username in a SUDO prompt

2016-06-14 Thread Brian Coca
For sudo(by default) the user would be the 'login/remote' user which can change by play/task/host. For su it would be the user you 'become', which can also vary as at every level. So there is really no good way to present this info at the 'global' prompt for password

Re: [ansible-devel] Re: 2.2 Roadmap is Posted for Feedback

2016-06-21 Thread Brian Coca
http://github.com/ansible/proposals once we have proposals, we can consider adding it to a roadmap. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emai

Re: [ansible-devel] Re: It looks to me as though 127.0.0.1 unreachable!

2016-06-22 Thread Brian Coca
ns, visit https://groups.google.com/d/optout. > -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups

Re: [ansible-devel] How to access inventory from custom action plugin v2

2016-08-23 Thread Brian Coca
hostvars always has all hosts present in inventory, you can also look at groups['all'] to get the full list. -- ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this grou

Re: [ansible-devel] common library for multiple modules

2016-08-24 Thread Brian Coca
The module_utils directory is the proper place for it and a do_common.py can be added there. After 2.2 is released we plan on merging all repos into a single one to avoid the 2 PRs issue with this feature. -- Brian Coca -- You received this message because you are subscribed to the

Re: [ansible-devel] Re: Can a Callback change the output of a module

2016-08-25 Thread Brian Coca
changed_when/failed_when are there to deal with modifying a task output status, callbacks execute AFTER this happens, so even if you modify the data it won't modify the actual status of the tasks. -- Brian Coca -- You received this message because you are subscribed to the G

[ansible-devel] Milestone and Label changes

2016-09-06 Thread Brian Coca
es will make things clearer and help us get through the backlog faster. As always we welcome your feedback. -- Brian Coca Ansible Core Team​ -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group

Re: [ansible-devel] Re: Extra vars with plugins

2016-09-15 Thread Brian Coca
er plays, 'include_tasks' can ONLY occur inside a play (roles are already inside a play). -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiv

Re: [ansible-devel] Re: Extra vars with plugins

2016-09-15 Thread Brian Coca
vars_files is a PLAY directive, not part of includes -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve

Re: [ansible-devel] Re: Extra vars with plugins

2016-09-15 Thread Brian Coca
ally needs some work). -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For

Re: [ansible-devel] Can i create a Tower Label in a yml playbook?

2016-09-26 Thread Brian Coca
For Ansible Tower support please email supp...@ansible.com or open a ticket at https://support.ansible.com. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiv

Re: [ansible-devel] Looking for help and guidance on an a PR to Ansible Galaxy Project

2016-10-14 Thread Brian Coca
The ansible-galaxy command line already supports installing from them, so no changes needed there. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emai

Re: [ansible-devel] Looking for help and guidance on an a PR to Ansible Galaxy Project

2016-10-14 Thread Brian Coca
@Ricardo, on the galaxy.ansible.com (galaxy-server) side, it only allows importing roles from github.com as well as requires github.com accounts. I believe they want to extend the server software to allow for other 'origins' both for accounts and for shared roles. ------ Brian Coc

Re: [ansible-devel] Need document to use ANSIBLE APIs with curl

2016-10-14 Thread Brian Coca
Since Ansible is not a server and does not offer APIs in a way you can access with curl, I"m going to assume you want to use Tower, which is not what we support in this mailling list. please go to https://support.ansible.com. -- Brian Coca -- You received this message because yo

Re: [ansible-devel] New to Ansible Not to Python looking to help

2016-10-19 Thread Brian Coca
The best way is normally to just look at open issues, see if there is something that looks small and in your bailiwick and try to tackle it. There is also an #ansible-devel channel in IRC if you want quick response to questions. -- Brian Coca -- You received this message because you

Re: [ansible-devel] uri module and user certificates

2016-10-19 Thread Brian Coca
This is not currently a feature, but you can open an Issue and someone might implement it. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from i

Re: [ansible-devel] Noob Issue with using AWS hostnames in inventory

2016-10-19 Thread Brian Coca
To debug, run with -vvv and you'll see the full ssh command, see if you can run that manually. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving

Re: [ansible-devel] Role Includes When Statement

2016-10-24 Thread Brian Coca
when: runs INSIDE the with_items loops, so it cannot prevent definition errors, use |default([]) as an empty list will skip the loop. http://docs.ansible.com/ansible/playbooks_conditionals.html#loops-and-conditionals -- Brian Coca -- You received this message because you are

Re: [ansible-devel] Need to import code from ansible module

2016-11-02 Thread Brian Coca
implemented yet. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For

[ansible-devel] commiter docs

2016-11-02 Thread Brian Coca
Just to make sure everyone is on the same page and our process is clear to all, I've added a PR for 'committer docs' to the community repo. https://github.com/ansible/community/pull/134 ​ -- Brian Coca -- You received this message because you are subscribed to th

Re: [ansible-devel] Access All Variables in Plugin - Ansible 2.1

2016-11-08 Thread Brian Coca
add an assert in each role that checks if the variables you need for that role are defined or not at the start, as it is self contained you can predict your external needs at that point, anything else will be expensive to run and fragile. -- Brian Coca -- You received this message because

Re: [ansible-devel] Custom Connection Plugin - to instatiate any generic "connection"

2016-11-10 Thread Brian Coca
Nothing exists yet, but I have this proposal https://github.com/ansible/proposals/issues/24 that would do 'just that' ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from

Re: [ansible-devel] BSD jexec module

2016-11-16 Thread Brian Coca
You have already have a "jail" connection plugin, which most modules should be able to use transparently. ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and s

Re: [ansible-devel] Need help to understand the output of ansible-playbook

2016-11-17 Thread Brian Coca
ed, so you get 3 OK, one of them also changed ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@g

Re: [ansible-devel] Re: Skip task in callback_plugin or stop playbook execution

2016-12-13 Thread Brian Coca
make your first action - meta: end_play when: http://docs.ansible.com/ansible/meta_module.html -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving e

Re: [ansible-devel] Re: IMPORTANT - New RCs for Security Bug CVE-2016-9587

2017-01-10 Thread Brian Coca
Please don't comment on closed issues as we don't see those normally. ------ Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [ansible-devel] Re: "stableinterface" Module Status Question

2017-01-11 Thread Brian Coca
It means that adding new options is OK, removing or changing the behaviour of existing ones should be avoided. New options don't break backwards compatibility AKA break existing plays. -- Brian Coca -- You received this message because you are subscribed to the Google Groups &qu

Re: [ansible-devel] Re: IMPORTANT - New RCs for Security Bug CVE-2016-9587

2017-01-11 Thread Brian Coca
Most older versions should be vulnerable, we recommend upgrading to 2.1 or 2.2 once we release the fix. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving e

Re: [ansible-devel] Remote Env Setup Queries

2017-01-11 Thread Brian Coca
The environment: directive exists so each module does not need to implement what you are asking. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emai

Re: [ansible-devel] Re: Remote Env Setup Queries

2017-01-12 Thread Brian Coca
It is for setting environment variables, it should not execute anything. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email

[ansible-devel] Re: [ansible-project] Re: IMPORTANT - Updated RCs for Security Bug CVE-2016-9587

2017-01-12 Thread Brian Coca
once ready we will push to all the normal channels we control (including pypi), until then you can try out the RC at http://releases.ansible.com/ansible/ansible-2.2.1.0-0.4.rc4.tar.gz -- Brian Coca -- You received this message because you are subscribed to the Google Groups "An

Re: [ansible-devel] Request for Comments on ideas for a new Ansible Inventory `2.0'

2017-01-17 Thread Brian Coca
a discussion about this, I encourage feedback, not only on this post but on the proposals linked above.​ There are many a topic in the mailing lists and on Github issues​ that are also pertinent to this discussion, I omitted them as I believe the proposals already take most of those into account. -

Re: [ansible-devel] Request for Comments on ideas for a new Ansible Inventory `2.0'

2017-01-17 Thread Brian Coca
Correction on my previous email: i mean @svg .. not @sivel, though he has contributed to these discussions my tab completion gave me the wrong nick -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development"

Re: [ansible-devel] Want to work on issue #17329, need help to proceed.

2017-02-10 Thread Brian Coca
specific marker would be the recommended approach. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve

Re: [ansible-devel] Re: Reworking a few AWS modules...looking for advice

2017-02-16 Thread Brian Coca
We've been adding rules and normalizing module development to try to keep a consistent interface, the problem is the existing modules cannot easily be rewritten w/o breaking playbooks. -- Brian Coca -- You received this message because you are subscribed to the Google Groups &qu

Re: [ansible-devel] count number of plays/tasks before & during run

2017-02-24 Thread Brian Coca
You want --sytnax-check, but that will only give you an approximation as dynamic includes and include_role can change the number of tasks, as can tags and conditionals. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Develo

Re: [ansible-devel] Action Plugins and Async Support

2017-02-28 Thread Brian Coca
lity to 'fail' using that module or 'assert', a workaround is using a block with conditionals to apply to the 'rest of the tasks' in the play. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Deve

Re: [ansible-devel] question about introducing a dependency in a module

2017-03-03 Thread Brian Coca
You can use any libs included with python core, for example we use distutils's version, in many modules you can see examples of using LooseVersion and StrictVersion -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Developm

Re: [ansible-devel] Re: private module_utils

2017-03-13 Thread Brian Coca
It is part of 2.3 release, coming soon. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve

  1   2   >