Re: [ansible-devel] openstack os_server_facts: some of openstack_servers entries partially replaced by asterisks

2018-03-18 Thread 'Felix Fontein' via Ansible Development
Hi, > I just wrote a trivial snippet which uses 'os_server_facts' module to > collect VM info. > Snippet itself works fine but output a bit confusing me. > It looks like this: > "openstack_servers": [ > { > "HUMAN_ID": true, > "NAME_ATTR": "name", >

Re: [ansible-devel] Re: SSH copy id - permission denied

2018-11-17 Thread 'Felix Fontein' via Ansible Development
Hi, why don't you ask this on the user support mailing list (https://groups.google.com/forum/#!forum/ansible-project)? This mailing list is for Ansible development, not for user support. Thanks and best regards, Felix Fontein On Sat, 17 Nov 2018 06:18:09 -0800 (PST) Chinni123 wrote: >

Re: [ansible-devel] i really dont know how to fix this error

2019-02-05 Thread 'Felix Fontein' via Ansible Development
Hi, it looks like you have a link in your tree which points to a directory higher up in the hierarchy. This, combined with follow=yes, gives an infinite loop. I guess it would be better to modify the file module so that in case follow=yes, it keeps track of all directories it already processed.

Re: [ansible-devel] using json as a password for docker_login module

2019-10-26 Thread 'Felix Fontein' via Ansible Development
Hi, > Luckily I found a code that caused this > behaviour: > https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/docker/docker_login.py#L318. > The "password" is of type "string". Then I changed "type='str'" to > "type='json'" in my local file and everything worked! that's

Re: [ansible-devel] Re: remote_src and template_host not working in template module for me

2020-02-19 Thread 'Felix Fontein' via Ansible Development
Hello, pleaes use the appropriate places for support questions. This mailing list is for discussions on the development of Ansible. You might want to try https://groups.google.com/forum/#!forum/ansible-project instead. Best, Felix On Wed, 19 Feb 2020 05:54:53 -0800 (PST) JJ wrote: > Can

Re: [ansible-devel] Re: Network switch total uptime in minutes

2020-03-10 Thread 'Felix Fontein' via Ansible Development
Hello, please ask support questions in the correct place: https://groups.google.com/forum/#!topic/ansible-project/ This mailing list is for development discussions. Thanks, Felix On Tue, 10 Mar 2020 04:43:45 -0700 (PDT) Nasir Nasir wrote: > Hi All, > > if i can get any reply on this. > >

Re: [ansible-devel] Developing new module, that includes filetransfer

2020-03-30 Thread 'Felix Fontein' via Ansible Development
Hi Alex, > I am currently developing a module (actually for windows over ssh). > The module requires a filetransfer from the controller. Of course I > could just use win_copy first, but I would like the module to be more > self-contained. > > But I cannot work out how to achieve a filetransfer.

Re: [ansible-devel] Ansible task not starting up custom node.js script with either shell or command module

2020-09-02 Thread 'Felix Fontein' via Ansible Development
Hi, you might want to ask this in the appropriate places, for example https://groups.google.com/forum/#!topic/ansible-project/ This mailing list / group is about discussing developing Ansible, and not for support questions. Thanks, Felix Fontein On Wed, 2 Sep 2020 12:49:48 -0700 (PDT) jonin

Re: [ansible-devel] Missing parameter in module theforeman.foreman.repository (Feature request)

2020-08-27 Thread 'Felix Fontein' via Ansible Development
Hi, you might have noticed the "Issue Tracker" and "Repo" links at the top-right corner of https://galaxy.ansible.com/theforeman/foreman. These link to the GitHub repository for this collection, https://github.com/theforeman/foreman-ansible-modules That's the place where you should ask this

Re: [ansible-devel] Ansible-2.10.0: Unfrozen until beta1

2020-08-27 Thread 'Felix Fontein' via Ansible Development
Dear all, just a quick reminder: if you haven't already done so, please use the unfreeze to add a **changelog** to your collection! The preferred way is to use antsibull-changelog. You can read more about that at the following links: *

Re: [ansible-devel] synchronize links

2020-09-18 Thread 'Felix Fontein' via Ansible Development
Hi, > I have a question concerning the handling of symlinks with the > synchronize module: > > What exactly is the difference between the "link" and "copy_link" > options, and how are they intended to be used? The docs say > > --- > copy_links: Copy symlinks as the item that they point to (the

[ansible-devel] Inclusion of collections in Ansible 2.10

2020-08-05 Thread 'Felix Fontein' via Ansible Development
Hi, today we posted a summary of all requirements for collections included in Ansible 2.10 into all collection repositories. Below you can find the text. All created issues are also linked from https://github.com/ansible-collections/overview/issues/102. If you are interested in the list of

Re: [ansible-devel] Ansible 2.10 and Project Restructuring

2020-06-30 Thread 'Felix Fontein' via Ansible Development
Hi Matt, > Unfortunately I'm still very lost. > (Which means there's probably lots of other potential contributors > who are lost too.) > > > If you have the module in your collection path > > What's a collection path? > Do you mean that iam_role.py needs to be in a directory within my OS >

Re: [ansible-devel] Two sets of arguments/parameters for one module?

2020-07-10 Thread 'Felix Fontein' via Ansible Development
Hi, why not simply have two different modules? (With shared code in module_utils?) You could also not use AnsibleModule, but do all the communication by yourself (like binary modules). That way you can essentially do what you want. Cheers, Felix > That is helpful, but would it be possible to

Re: [ansible-devel] Re: Ansible 2.10 and Project Restructuring

2020-06-27 Thread 'Felix Fontein' via Ansible Development
Hi, you'll find some basic information on that in https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html (in the devel docs). See in particular the last and second-to-last sections. Best, Felix On Fri, 26 Jun 2020 21:42:52 -0700 (PDT) Matthew Davis wrote: > Hi Sam, >

[ansible-devel] Versioning, deprecation and changelogs for community.general and community.network

2020-06-25 Thread 'Felix Fontein' via Ansible Development
This information can also be found in sticky locked issues in the collection GitHub repositories: https://github.com/ansible-collections/community.general/issues/582 https://github.com/ansible-collections/community.network/issues/81 ## Introduction This mail describes *how* and *when*

Re: [ansible-devel] Problem with DOCUMENTATION.version_added value in sanity tests

2020-06-02 Thread 'Felix Fontein' via Ansible Development
Hi, > For a couple of days I've been getting the following error in the > Ansible sanity tests... > > ERROR: plugins/modules/cassandra_autocompaction.py:0:0: > module-invalid-version-added: DOCUMENTATION.version_added: invalid > semantic version '2.8' for dictionary value @

Re: [ansible-devel] What are the new features of Ansible 2.9

2020-12-05 Thread 'Felix Fontein' via Ansible Development
Hi, have you tried looking at the changelogs and porting guides for all Ansible versions inbetween? Cheers, Felix On Sat, 5 Dec 2020 09:23:49 -0800 (PST) swamy karampuri wrote: > Hi Team, > > What are the new features of Ansible 2.9 ? > > Earlier we have used Ansible 2.3. > What are the

Re: [ansible-devel] Import to_uuid filter in a custom module

2020-11-28 Thread 'Felix Fontein' via Ansible Development
Hi, if you mean an Ansible Python module, the answer is you can't. Modules can only import from module_utils, and not from plugins or any other part of Ansible Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To

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

2021-06-10 Thread 'Felix Fontein' via Ansible Development
Hi, the common way to document this (that will also work with already released ansible-core/base/ versions) is to add an entry to `notes:` which says `Supports C(check_mode).` or something like that. Cheers, Felix -- You received this message because you are subscribed to the Google Groups

Re: [ansible-devel] Common test utility functions

2021-02-11 Thread 'Felix Fontein' via Ansible Development
Hi, > I'm starting to migrate my module project into a collection and I'm > running into issues with missing test utility functions like: > > tests/unit/plugins/lookup/test_pfsense.py:10: in > from units.compat.mock import patch > E ImportError: No module named units.compat.mock > >

Re: [ansible-devel] Need - Java-Cloud Engineer Professional in Atlanta, GA

2021-03-12 Thread 'Felix Fontein' via Ansible Development
Hello, could you please stop spamming this mailing list with totally unfitting job ads? Thanks, Felix Fontein On Sat, 13 Mar 2021 00:09:47 +0530 Santhosh K wrote: > Hi, > > Please check the below position and reply back with the below details > and updated resume if you are comfortable. >

Re: [ansible-devel] Why does ansible-test pylint consider "_" to be a "bad-name"?

2021-03-08 Thread 'Felix Fontein' via Ansible Development
Hi, > Question about ansible-test sanity pylint - > https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible_test/_data/sanity/pylint/config/ansible-test.cfg#L28 > > - why is _ considered a bad variable name?  It is the standard, or at > least de facto, way to ignore one of the

Re: [ansible-devel] Common test utility functions

2021-02-14 Thread 'Felix Fontein' via Ansible Development
Hi, > > I'm not very happy about this either. My personal recommendation > > (slightly biased ;) ) for collections would be to import them from > > https://galaxy.ansible.com/community/internal_test_utils / > > https://github.com/ansible-collections/community.internal_test_tools. > > That of

Re: [ansible-devel] make webdocs for custom collection

2021-09-05 Thread 'Felix Fontein' via Ansible Development
Hi, instead of trying to force ansible's docsite build to build your module/plugin docs for your collection, you could simply create a new docsite: 1. Install antsibull (https://pypi.org/project/antsibull/) 2. Create a new directory /foo/bar 3. Run antsibull-docs sphinx-init

Re: [ansible-devel] Reversible include_tasks - A feature for Ansible

2021-11-06 Thread 'Felix Fontein' via Ansible Development
Hi Tim, it might be a good idea to create an issue in https://github.com/ansible/proposals/ for this. That might also give your proposal a bit more visibility. Best, Felix On Sat, 6 Nov 2021 14:12:48 -0700 (PDT) Tim Eisler wrote: > Hello. > > I have added a feature to my fork that allows a

Re: [ansible-devel] How to fix TypeError : Cant compile non template nodes While running ansible-test

2022-01-16 Thread 'Felix Fontein' via Ansible Development
Hi, > I have used Ubuntu 18.04 LTS and installed ansible 2.9.27 and python > 2.7.17. I am going to test ansible-collection with the ansible-test > command. When I give "ansible-test unit" , I am getting the below > error. Kindly help me to fix this error. I'm not sure where this error comes

Re: [ansible-devel] Learning Ansible with single host

2022-01-31 Thread 'Felix Fontein' via Ansible Development
Hi, > I was wondering if i could install Ansible on Ubuntu 20 host and try > to use for learning purpose. > Is it recommended or there are better way to learn it? sure, that works totally fine. Obviously you cannot try out some aspects (like working with different hosts at once :) ), but for

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread 'Felix Fontein' via Ansible Development
Hello, > I had a look to this interesting internal test collection, yet I > cannot make it work, my ansible-test units command keeps complaining > that the following path cannot be found: > > from > ansible_collections.community.internal_test_tools.tests.unit.compat > import unittest from >

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread 'Felix Fontein' via Ansible Development
Hi, > I didn't, I've used ansible-galaxy install which did install the > collection in .ansible/ansible_collections/... > > Am I supposed to do a git clone inside the same path of the > collection I'm developing ? This wasn't clear for me :) you can also tell `ansible-galaxy collection install`

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

2022-04-27 Thread 'Felix Fontein' via Ansible Development
Hi, > ansible requires every module to be licensed under GPLv3 and > mod_utils under BSD. that is not correct. While the ansible-test sanity checks look for such copyright notices, you can also decide to ignore these sanity check failures. Especially module_utils are often also GPLv3+ licensed

Re: [ansible-devel] Guidance about Jinja variable typing?

2022-08-05 Thread 'Felix Fontein' via Ansible Development
Hi, there have been some changes when macros are used in templates. I filed an issue for this some time ago: https://github.com/ansible/ansible/issues/78141 Some of the changes were not intentional and fixed in https://github.com/ansible/ansible/commit/2aa3cc9e40f46aa9071060052a68c2e82605a9e4

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

2022-08-03 Thread 'Felix Fontein' via Ansible Development
Hi, > I am new to Ansible Custom module development, can any one help me > how i can access the variables defined in ansible.cfg file into my > ansible modules python file. by default you cannot. IMO you also should not, because that's contrary to expectations that users have of modules. Modules

Re: [ansible-devel] Can Collection make it to Galaxy if it doesn't support Python 2?

2023-02-02 Thread 'Felix Fontein' via Ansible Development
Hi Thomas, > Hey, I'm working on a new collection for an infrastructure provider > (Equnix cloud). We'd like to move the collection to Galaxy at some > point. There is only controller environment code, in other words, the > code only runs on the same host as the ansible core, there's no > remote

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

2023-02-10 Thread 'Felix Fontein' via Ansible Development
Hi Uli, > We developed quite a number of collections which utilize the deep > folder structure to organize the content. Example: > > # > ├── playbooks/ > │ ├── db/ > │ │ ├── client/ > │ │ │ └── deploy_software.yml > │ │ └── server/ > │ │

Re: [ansible-devel] Creating my first Action plugin and have a few questions

2023-07-28 Thread 'Felix Fontein' via Ansible Development
Hi, >1. query_file.py contains my class which extends ActionBase. I use > some more modern stuff like types, @singledispatch, and @dataclass. I > think it will be hard to support Python 2.7 so I thought I'd stick > with Python 3 only. Does that decision make sense? I thought so since > it's

[ansible-devel] Release announcement: Ansible community package 9.5.1

2024-04-24 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 9.5.1 package! Ansible 9.5.1 depends on ansible-core 2.16.6 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. How to get it - This release is available on

[ansible-devel] Release announcement: Ansible community package 10.0.0a2 (Pre-Release)

2024-04-30 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 10.0.0a2 package pre-release! Ansible 10.0.0a2 depends on ansible-core 2.17.0rc1 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. This is a pre-release of Ansible 10.

[ansible-devel] Release announcement: Ansible community package 10.0.0a3 (Pre-Release)

2024-05-14 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 10.0.0a3 package pre-release! Ansible 10.0.0a3 depends on ansible-core 2.17.0rc2 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. This is a pre-release of Ansible 10.

[ansible-devel] Release announcement: Ansible community package 10.0.0a1 (Pre-Release)

2024-04-09 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 10.0.0a1 package pre-release! Ansible 10.0.0a1 depends on ansible-core 2.17.0b1 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. This is a pre-release of Ansible 10.

[ansible-devel] Release announcement: Ansible community package 9.4.0

2024-03-27 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 9.4.0 package! Ansible 9.4.0 depends on ansible-core 2.16.5 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. How to get it - This release is available on

[ansible-devel] Release announcement: Ansible community package 10.0.1

2024-06-05 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 10.0.1 package! Ansible 10.0.1 depends on ansible-core 2.17.0 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. This release updates 10.0.0 by removing binary files

[ansible-devel] Release announcement: Ansible community package 9.6.1

2024-06-05 Thread 'Felix Fontein' via Ansible Development
Hello everyone, We're happy to announce the release of the Ansible 9.6.1 package! Ansible 9.6.1 depends on ansible-core 2.16.7 and includes a curated set of Ansible collections that provide a vast number of modules, plugins, and roles. This release updates 9.6.0 by removing binary files from a