[ansible-project] Release announcement: Ansible community package 10.3.0

2024-08-13 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 10.3.0 package! Ansible 10.3.0 depends on ansible-core 2.17.3 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-project] Release announcement: Ansible community package 9.9.0

2024-08-13 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 9.9.0 package! Ansible 9.9.0 depends on ansible-core 2.16.10 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

Re: [ansible-project] creating RSA key with openssh_keypair

2024-08-01 Thread 'Felix Fontein' via Ansible Project
Hi, > However the public-key is showing the caption as ssh-rsa .. and the > private key is displaying the label as "-BEGIN OPENSSH PRIVATE > KEY- and -END OPENSSH PRIVATE KEY-" > > I am looking to create an rsa key-pairs with 2048b , something we > used to create with the com

[ansible-project] Release announcement: Ansible community package 10.2.0

2024-07-16 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 10.2.0 package! Ansible 10.2.0 depends on ansible-core 2.17.2 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-project] Release announcement: Ansible community package 9.8.0

2024-07-16 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 9.8.0 package! Ansible 9.8.0 depends on ansible-core 2.16.9 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 P

[ansible-project] Release announcement: Ansible community package 10.1.0

2024-06-18 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 10.1.0 package! Ansible 10.1.0 depends on ansible-core 2.17.1 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-project] Release announcement: Ansible community package 9.7.0

2024-06-18 Thread 'Felix Fontein' via Ansible Project
Hello everyone, We're happy to announce the release of the Ansible 9.7.0 package! Ansible 9.7.0 depends on ansible-core 2.16.8 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 P

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

2024-06-05 Thread 'Felix Fontein' via Ansible Project
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

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

2024-06-05 Thread 'Felix Fontein' via Ansible Project
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 from

Re: [ansible-project] set module_defaults globally?

2024-05-28 Thread 'Felix Fontein' via Ansible Project
Hi Brian and Dick, > At that point copy the module into a custom one and set the defaults > you want. that doesn't sound very sustainable, especially if this is the case for multiple modules in multiple collections. It might be helpful to allow module defaults to be included instead of having to

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

2024-05-14 Thread 'Felix Fontein' via Ansible Project
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-project] Release announcement: Ansible community package 10.0.0a2 (Pre-Release)

2024-04-30 Thread 'Felix Fontein' via Ansible Project
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-project] Release announcement: Ansible community package 9.5.1

2024-04-23 Thread 'Felix Fontein' via Ansible Project
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 Py

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

2024-04-09 Thread 'Felix Fontein' via Ansible Project
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. H

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

2024-03-27 Thread 'Felix Fontein' via Ansible Project
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 P

Re: [ansible-project] Synchronize module failing

2023-11-16 Thread 'Felix Fontein' via Ansible Project
Hi, > Thank you for your kind reply > > No some target machine don’t have rsync installed. > What to do in that case ? install rsync on the target machines before using the synchronize module. (For example using the ansible.builtin.package action: https://docs.ansible.com/ansible/latest/collecti

Re: [ansible-project] Install multiple named packages with 'community.general.zypper'

2023-09-19 Thread 'Felix Fontein' via Ansible Project
Hi tl, you can also provide a YAML list. See the documentation: it explicitly says `list / elements=string`. https://docs.ansible.com/ansible/latest/collections/community/general/zypper_module.html#parameter-name Providing a comma-separated string instead of a list is something Ansible allows, b

Re: [ansible-project] Running playbook in ansible collection

2023-09-07 Thread 'Felix Fontein' via Ansible Project
Hi, > I am writing an ansible collection to configure some internal company > tools. Inside this collection I want to have several roles. These > roles are very similar to each other, so I want to put some shared > utility functions and classes in some shared location. As far as I > understand, th

Re: [ansible-project] Re: Ansible 2.15 Warning message

2023-09-05 Thread 'Felix Fontein' via Ansible Project
Hi, I think it would help if you would say which specific message do you mean. There are a lot of different messages in what you posted. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop r

Re: [ansible-project] extracting key and certificate

2023-08-28 Thread 'Felix Fontein' via Ansible Project
Hi, > Trying to extract the private key and certificate from pfx file > format using ansible module.Can someone please provide the example. PFX files are usually PKCS #12 files (https://en.wikipedia.org/wiki/PFX), so community.crypto.openssl_pkcs12 (https://docs.ansible.com/ansible/latest/collect

Re: [ansible-project] Docker_image : Error loading image Specified path does not exist. (The path being perfectly fine)

2023-08-23 Thread 'Felix Fontein' via Ansible Project
Hi, does /path/grafana_image.tar exist on the target where the module is executed? Or do you only have it on the controller where ansible itself is running? The file needs to be on the target for the module to use it. If it isn't there yet, you need to use the ansible.builtin.copy module to copy

Re: [ansible-project] Issue with fstab entry added by ansible mount module its adding white space with \40 character

2023-08-22 Thread 'Felix Fontein' via Ansible Project
Hi, please take a look at your task: > - name: Mount NFS directories P1 >become: true >remote_user: testops >ansible.posix.mount: > fstype: "{{ mount_point[0].fstype }}" > src: "{{ mount_point[0].nfs_server }} {{ mount_point[0].source > }} " you are *explicitly* asking for

Re: [ansible-project] Formatting Issue with YAML Code in Visual Studio Text Editor

2023-08-12 Thread 'Felix Fontein' via Ansible Project
Hi, what you are showing in the screenshot is not valid YAML. I guess the reformatting feature of that YAML extension only reformats valid YAML. So you first have to convert it to valid YAML, and then you can reformat it. Cheers, Felix -- You received this message because you are subscribed to

Re: [ansible-project] Re: Filtering_data manipulation

2023-07-31 Thread 'Felix Fontein' via Ansible Project
Hi, > Yes. Or if you feel like ignoring the warnings^* about using > variables in copy's "content": > >     - name: Write to the file >       ansible.builtin.copy: >         content: | >{% for server in servers %} >{{ server }} >{% endfor %} >         dest:

Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi, does `docker container list` show a container with name `ubuntu`? If not, the error message is completely accurate. The docker_container_exec module does something similar to `docker exec -w /root ubuntu /bin/bash -c "ls -lah"`. If you don't have a container called `ubuntu`, you first have to

Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi William, > so bottom line I am using the community.docker collection and my code > is pretty simple to start I just want to login to my registry and i > am failing and do not have > a clue as to why my code is below and I get this error > > { > "msg": "Error connecting: Error while fetching

Re: [ansible-project] Release announcement : Ansible Community Package 8.1.0

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi Nico, > Felix, the provenance of the "ansible" package is really a bundle of > "ansible galaxy collections", It's not from a single project. It's > built from more than 100 distinct modules, most of which have their > own git repo. Take a look at this to see the build tool used to > generate th

Re: [ansible-project] Release announcement : Ansible Community Package 8.1.0

2023-06-28 Thread 'Felix Fontein' via Ansible Project
Hi Anwesha, before we start modifying the announcement, can we please first have it in a public GH repo - say https://github.com/ansible-community/ansible-build-data/tree/main/docs - and then discuss these changes in a PR so it's clear to everyone involved what exactly the diff is? Cheers, Felix

Re: [ansible-project] how to get in touch with the owners of this list?

2023-06-10 Thread 'Felix Fontein' via Ansible Project
Hi Andrew and Dick, I've created an issue in https://github.com/ansible-community/community-team/issues/242, as the Ansible community team might be the owner, or at least should be able to figure out who actually is. Best, Felix On Sat, 10 Jun 2023 10:01:14 -0600 Andrew Latham wrote: > Maybe

Re: [ansible-project] How to reuse an http client object ?

2023-05-03 Thread 'Felix Fontein' via Ansible Project
Hi, > Is it possible to put a client object somewhere so it can be > shared/reused by custom plugins ? That is, only for tasks running on > the controlling node. > > I'm trying to reuse the very same pysnow client object in successive > tasks. Hoping to improve the performance of a very long run

Re: [ansible-project] opposite of --limit (to exclude hosts)

2023-04-27 Thread 'Felix Fontein' via Ansible Project
Hi, > ist there anything like a negation of --limit (to not execute a > playbook on the named remotes) ? you can use `!` for that in the `--limit` expression: `ansible-playbook --limit 'servers,!specific_server,!specific_group ...` That will use all servers from the group `servers`, except `s

Re: [ansible-project] Powerscale.FileSystem Path goes to "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", not able to fetch

2023-04-25 Thread 'Felix Fontein' via Ansible Project
Hi, > i was able to successfully create a FileSystem using module which is > not exist only > (eg: if nothing there it will create 1 , ) > (eg: if 1 and 2 there it will create 3 , ) > (eg: if 1, 2, 3 there it will create 4 , ) > >#creating /ifs/cluster_name/MA/DEV/FOUMAD0031301 >#

Re: [ansible-project] ansible-core 2.14 and determining if top level variables exist in source

2023-02-01 Thread 'Felix Fontein' via Ansible Project
Hi, > I just opened https://github.com/ansible/ansible/issues/79874 and > Matt explained that 2.14 change is working as designed and closed the > issue. > > Matt put a link in the issue describing variable lazy eval and how > undefined variables now work: > https://docs.ansible.com/ansible-core/

Re: [ansible-project] Ansible 6.7.0 has been Released!

2022-12-08 Thread 'Felix Fontein' via Ansible Project
Hi, > > We're happy to announce that the Ansible 6.7.0 package has been > > released! > > > > Ansible 6.7.0 will include ansible-core 2.13.7 as well as a curated > > set of Ansible collections to provide a vast number of modules and > > plugins. > > Is there any reason to use this with ansible

Re: [ansible-project] Question about community.general.opentelemetry callback

2022-11-07 Thread 'Felix Fontein' via Ansible Project
Hi, unfortunately you did not mention which version of community.general you are using. For opentelemetry-api 1.13.0 you need community.general 5.8.0, since that contains a bugfix which allows the opentelemetry callback to work with that version. (It removed some helper function that the plugin wa

Re: [ansible-project] Package Facts with multiple Packages

2022-10-29 Thread 'Felix Fontein' via Ansible Project
Hi, > - name: Install restic >   ansible.builtin.package: >     name: "{{ restic_packages }}" >     state: present >   when: >     - "'{{ restic_packages }}' not in ansible_facts.packages" 1. This condition does not do what you want. You are testing whether the list of packages is a *member*

Re: [ansible-project] How to add a documentation fragment of return values?

2022-10-04 Thread 'Felix Fontein' via Ansible Project
Hi, > I am trying to understand how to document, specifically documentation > fragments. > following the examples from the documentation everything works, I am > able to insert fragments that merge into `DOCUMENTATION` that is correct. > But I came into trouble with inserting return type fragme

Re: [ansible-project] error sending mail

2022-08-30 Thread 'Felix Fontein' via Ansible Project
Hi, did you install the community.general collection? Cheers, Felix On Tue, 30 Aug 2022 11:53:39 -0700 (PDT) Abel Laime wrote: > "The module mail was redirected to > community.general.notification.mail, which could not be loaded." > > > code: > > - name: Mail > mail: > hos

Re: [ansible-project] Re: Error- When Condition

2022-08-15 Thread 'Felix Fontein' via Ansible Project
Hi, > You do not need double quote. A 'when' condition does not need to be > quoted. this has nothing to do with 'when' conditions, but with YAML parsing. A statement such as > when: "RUNNING" in job_check.stdout_lines will result in a YAML parsing error. Actually the error output from Ansi

Re: [ansible-project] Re: Error- When Condition

2022-08-15 Thread 'Felix Fontein' via Ansible Project
Hi, > Don't you need to put "RUNNING" in quotes? It is a string, no? > > when: "RUNNING" in job_check.stdout_lines actually you need double quotes, since YAML would complain about the quotes not being terminated correctly: > when: '"RUNNING" in job_check.stdout_lines' Alternatively you co

Re: [ansible-project] Community mail module not working

2022-07-13 Thread 'Felix Fontein' via Ansible Project
Hi, > I'm running Ansible --version > > > ansible 2.10.8 please note that ansible-base 2.10 is End of Life since May 2022. We suggest to upgrade to ansible-core (2.11 or later). > I installed the community.general collection using : > ansible-galaxy collection install community.general > > a

Re: [ansible-project] docker_container - container stops without completing the commands

2022-07-11 Thread 'Felix Fontein' via Ansible Project
Hi, I assume that running "dnf install -y make gcc openssl-devel libxml2-devel lz4-devel libzstd-devel bzip2-devel" is done after ~90 seconds. You are asking for that command to be run in a container, once that command finishes, the container exists. That's how Docker works, and it would behave e

Re: [ansible-project] How to correctly print a multiline stdout?

2022-07-09 Thread 'Felix Fontein' via Ansible Project
Hi, there are multiple solutions, even if there's no perfect one that works out of the box: 1. Use `debug: msg="{{ result.stdout_lines }}"`. Not perfect, but a lot better to read than `debug: msg="{{ result.stdout }}"`. 2. Check out the many callback plugins that exist: https://docs.ansibl

Re: [ansible-project] manage docker via Ansible - question on the python docker library/package on the target

2022-07-07 Thread 'Felix Fontein' via Ansible Project
Hi, > > > The best alternative is usually to install it from system > > > packages. For example, on Ubuntu and Debian, there's the > > > python3-docker system package you can install. For other OSes > > > similar packages might exist. > > > > same same (python3-docker) on this rhel8 host. Will g

Re: [ansible-project] manage docker via Ansible - question on the python docker library/package on the target

2022-07-07 Thread 'Felix Fontein' via Ansible Project
Hi, > I try to handle docker containers via Ansible and am getting this > error: > msg: 'Failed to import the required Python library (Docker SDK > for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on > vm-51150-0191''s Python /usr/libexec/platform-python. Please read > module do

Re: [ansible-project] What should be done for the sorry state of the google.cloud collection?

2022-05-20 Thread 'Felix Fontein' via Ansible Project
Hi, > - had only one commit the past 6 months there were actually two, and two more a bit more than 6 months ago. But I know what you mean. Also a "bug fixes" commit which simply removes a CI workflow and doesn't do anything else doesn't really count as a useful change to the collection :) > - w

Re: [ansible-project] community.docker.docker_container_exec error handling

2022-05-19 Thread 'Felix Fontein' via Ansible Project
Hi, you probably want to search for `failed_when` in the ansible-core documentation. Cheers, Felix On Thu, 19 May 2022 09:51:09 -0700 (PDT) "'Tony' via Ansible Project" wrote: > Hi all, > > Provision docker instance > Get application code > Run some tests > > I am currently creating a CIC

Re: [ansible-project] Questions regarding the ansible sops collection

2022-04-27 Thread 'Felix Fontein' via Ansible Project
Hi, > I am relatively new to ansible and I want to use the sops collection > to decrypt some sensible data for our ansible playbooks / roles that > we want to store in a git repo. Unfortunatly things are not working > as expected, which might be because I do not understand all things > corect. I'd

Re: [ansible-project] Wording ansible packages / updates (was: Ansible 5.6.0 has been released)

2022-04-07 Thread 'Felix Fontein' via Ansible Project
Hi Michael, > On 4/7/22 07:40, 'Felix Fontein' via Ansible Project wrote: > > I really wish you would stop repeating this procedure on every > > Ansible release. If you want things to actually change, start a > > proper discussion in the appropriate place > >

Re: [ansible-project] Ansible 5.6.0 has been released

2022-04-06 Thread 'Felix Fontein' via Ansible Project
Hi Nico, I really wish you would stop repeating this procedure on every Ansible release. If you want things to actually change, start a proper discussion in the appropriate place (https://github.com/ansible-community/community-topics/). > > Getting collection updates from Ansible 5 with ansible-c

Re: [ansible-project] Returning from Bug#77302. Bad file descriptor

2022-03-20 Thread 'Felix Fontein' via Ansible Project
Hi, if you look at the information you sent, you might notice that the task that has the error is called "create YML for server name with Listen port" (and it looks like it is a `shell` task), but you do not show that task. Also when you would actually look at the output, you could see that you a

Re: [ansible-project] Python compatibility between controller and managed nodes

2022-03-16 Thread 'Felix Fontein' via Ansible Project
Hi, >  A question about python compatibility between controller and > managed node. > > >  Do an ansible controller 2.9.XX with python 2.7.X can manage nodes > where python 3.8 is installed? yes. There is no relation between the Python versions on controller and target (except that both have

Re: [ansible-project] Apt behaviour

2022-03-06 Thread 'Felix Fontein' via Ansible Project
hi, > Hi all, > > Anyone knows why is apt behaving differently here? I have this var I don't think this is related to the apt module, but to how the variable ends up being loaded. It seems to end up as a string, but not as a sting in JSON format (which would be converted to a list), but in Pytho

Re: [ansible-project] ansible installation thoughts

2022-02-23 Thread 'Felix Fontein' via Ansible Project
Hi Dick, > I'm setting out to upgrade ansible in some places here. > We exclusively use ansible in dedicated venvs, using python3.9. > Most of the installs are 3.4.0. > Looking back over the last years I had the impression that doing 'pip > install ansible' was increasingly slower. > This makes se

Re: [ansible-project] SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify

2022-02-15 Thread 'Felix Fontein' via Ansible Project
Hi, are you sure you disabled HTTPS certificate checks for the k8s inventory plugin? In your original posting, you disabled SSH host key checking. Please check out https://docs.ansible.com/ansible/latest/collections/kubernetes/core/k8s_inventory.html#parameter-connections/validate_certs Cheers,

Re: [ansible-project] openssl_certificate_info subject_hash?

2022-02-13 Thread 'Felix Fontein' via Ansible Project
Hi Dick, > I am moving some older code that uses openssl shell commands to use > the newer community crypto OpenSSL ansible modules. Most of that works > well. > However, I have this task to find the issuer's hash: > > shell: echo "{{ tls_cert_crt }}" | openssl x509 -noout -issuer_hash > > I don

Re: [ansible-project] Ansible 5.3.0 has been released

2022-02-06 Thread 'Felix Fontein' via Ansible Project
Hi Nico, > > Ansible 5.3.0 includes the newly released ansible-core 2.12.2 as > > well as a curated set of Ansible collections to provide a vast > > number of modules and plugins. > > I hate to sound like a broken record here, but could we please stop > claiming that ansible-core is included in

Re: [ansible-project] docker_image/docker_container not working - The error was: SyntaxError: invalid syntax

2022-02-02 Thread 'Felix Fontein' via Ansible Project
Hi, when asking the same question in multiple locations (https://github.com/ansible-collections/community.docker/issues/290), please mention that so that people can check whether it has already been answered before spending time answering it again. Thanks, Felix On Tue, 1 Feb 2022 14:37:59 -0

Re: [ansible-project] Help with acme_certificate / letsencrypt and empty challenge_data

2022-01-18 Thread 'Felix Fontein' via Ansible Project
Hi, > It appears that the first example in the docs has this error: > https://docs.ansible.com/ansible/latest/collections/community/crypto/acme_certificate_module.html#acme-certificate-module oh, indeed! Thanks for spotting that! I've created a PR to fix it (https://github.com/ansible-collections

Re: [ansible-project] Help with acme_certificate / letsencrypt and empty challenge_data

2022-01-18 Thread 'Felix Fontein' via Ansible Project
Hi, > But right after that, I have the exact same statement in when: > > - name: "Implement http-01 challenge files" > copy: > content: "{{ > acme_challenge_mydomain['challenge_data'][inventory_hostname]['http-01']['resource_value'] > > }}" > dest: "/opt/FileMaker/FileMaker Server/HTTPServer/h

Re: [ansible-project] Help with acme_certificate / letsencrypt and empty challenge_data

2022-01-18 Thread 'Felix Fontein' via Ansible Project
Hi, > I'm fairly new to this. I'm using ansible 2.9.6 on Ubuntu 20.04. that version is really old and outdated. You should upgrade at least to the latest 2.9.x release (2.9.27), or even to the latest Ansible release (5.2.0). This is the correct syntax (assuming your domain name is inventory_host

Re: [ansible-project] Dynamic types for module arguments

2022-01-12 Thread 'Felix Fontein' via Ansible Project
Hi Rhys, > The original ssl_cert_reqs argument is a string. These string values > map to the new boolean values. > > I basically want to map the strings as follows.. > > CERT_NONE - True > CERT_REQUIRED - False > > But also allow boolean values to be accepted. maybe doing `type: raw` with `cho

Re: [ansible-project] Ansible collection is installed but playbook can't find it.

2021-12-22 Thread 'Felix Fontein' via Ansible Project
Hi, > *[root@localhost ansible-content]# cat playbook-Create_User.yml > name: Create new user account hosts: all #connection: local > junipernetworks.junos.junos_user:name: ansibleusrrole: > super-user state: present* you need to use the `tasks:` keyword and move the actual task i

Re: [ansible-project] Ansible-Pull Copy Error

2021-11-03 Thread 'Felix Fontein' via Ansible Project
Hi Paul, he was talking about the line **above** what he wrote, which is 'root: root'. That line was **not** included in your first post, and that's the line that's wrong. It must be 'user: root' (as it was in your first post). > >     root: root Cheers, Felix -- You received this message

Re: [ansible-project] Generate docs from ansible argspec

2021-10-20 Thread 'Felix Fontein' via Ansible Project
Hi, > Is there any way to generate a markdown documentation from ansible > role argument spec? > > https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-argument-validation > > I could not find anything in ansible-doc, the format itself suggests > that there is a way

Re: [ansible-project] How to prevent ansible to suppress escaped quotes?

2021-08-20 Thread 'Felix Fontein' via Ansible Project
Hi, I tried to replicate this, but without success. The quotes were there. So you probably have to provide more information. > { > >  inputs: { > >    "value": "my \" value \" is here" > > [ .. ] Please note that it must be "inputs" for a proper JSON file. Also please note that the "value"

Re: [ansible-project] Linux integration with Windows AD using Thycotic Secret Server

2021-08-20 Thread 'Felix Fontein' via Ansible Project
Hi Vinod, not sure whether you saw that, but there's a lookup plugin for TSS: https://docs.ansible.com/ansible/latest/collections/community/general/tss_lookup.html Best, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe f

Re: [ansible-project] Question on force_source in community.docker.docker_image

2021-07-05 Thread 'Felix Fontein' via Ansible Project
Hi, > I have a question on how the `force_source` works in > `community.docker.docker_image` in case of pulling docker image. > > Assuming that I already have a `my-awesome-stuff/my-image:my-tag` > locally and run ansible playbook with task > > ```yaml > - name: "Pull docker image" > communi

Re: [ansible-project] Multiple Choice Question? Ansible

2021-06-16 Thread 'Felix Fontein' via Ansible Project
Hi, is this some kind of homework? How about using your favorite search engine to look for the documentation of that module and answering your questions yourself? Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Felix Fontein' via Ansible Project
Hi, how about using `role_dir`? Then you can use that to compose a relative path from the current role's directory to your shared handlers file. > BTW, looks like freenode is down. We've moved to Libera.chat (since three weeks now; see https://github.com/ansible-community/community-topics/issues

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread 'Felix Fontein' via Ansible Project
Hi, > Per > https://stackoverflow.com/questions/33866695/error-installing-psycopg2-on-macos-10-9-5, > installing Postgres should've installed it? That's why I mentioned > that I did install it. I cannot find that information on that link. If you are referencing the first answer (https://stackover

Re: [ansible-project] Version of collections included in Ansible distro?

2021-06-14 Thread 'Felix Fontein' via Ansible Project
Hi Erik, > So this means we'll have to wait for an eventual 4.1.1 release of > ansible or 4.2.0, right? yes, you will (unfortunately) have to wait for 4.2.0, which will be released in ~2 weeks. Best, Felix -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Issue | sudo su - | ansible

2021-06-05 Thread 'Felix Fontein' via Ansible Project
Hi Jatinder, it would be interesting to see more debug output. Have you tried running ansible additionally with `-vvv`? Best, Felix On Sat, 5 Jun 2021 06:26:19 -0700 (PDT) Jatinder Jawanda wrote: > Nope, its not working !! > > *ansible example.com -i inventory/example -

Re: [ansible-project] Issue | sudo su - | ansible

2021-06-05 Thread 'Felix Fontein' via Ansible Project
Hi Jatinder, have you tried `ansible_become_method=community.general.sudosu` instead of `ansible_become_method=sudosu`? The later will definitely not work, since `sudosu` is not that old that it still has a short name. (Besides that, I haven't used it, so I unfortunately cannot share working code

Re: [ansible-project] Issue | sudo su - | ansible

2021-06-05 Thread 'Felix Fontein' via Ansible Project
Hi, this is supported with the community.general.sudosu become plugin: https://docs.ansible.com/ansible/latest/collections/community/general/sudosu_become.html Cheers, Felix On Sat, 5 Jun 2021 05:57:52 -0700 (PDT) Jatinder Jawanda wrote: > Is it possible to run "*sudo su -*" in ansible with

Re: [ansible-project] timeout in ansible.posix.firewalld

2021-05-27 Thread 'Felix Fontein' via Ansible Project
Hi, > I'm not sure but it looks like several of the parameters for that > ansible module map to the arguments of firewall-cmd: > https://firewalld.org/documentation/man-pages/firewall-cmd.html > > In that case, the syntax would be: > "either a number (of seconds) or number followed by one of char

Re: [ansible-project] Ansible3.3.0

2021-05-18 Thread 'Felix Fontein' via Ansible Project
Hi, > Could you help... > I ve installed ansible-base 2.10.9 and ansible 3.0.0 > > But checking ansible verdion it says 2.10.9 I'm not sure how you checked the version. Did you do `pip show ansible`? That should show 3.0.0. If you ran `ansible --version`, that shows the version of the `ansible

Re: [ansible-project] seboolean module in 2.10

2021-05-06 Thread 'Felix Fontein' via Ansible Project
Hi, > The seboolean module has apparently disappeared from Ansible 2.10. according to ansible-base's ansible_builtin_runtime.yml, the module resides in ansible.posix, and there I can find it: https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/seboolean.py > It also do

Re: [ansible-project] How can I use docker_secrets in docker_container?

2021-04-11 Thread 'Felix Fontein' via Ansible Project
Hi, I'm not sure this is possible at all. docker_secret is a module for Docker's swarm mode. docker_container is a module for Docker's non-swarm mode. If you use docker_swarm_service to manage a Docker swarm service, you can specify the secrets to use. I also cannot find any reference to secrets

Re: [ansible-project] BUG: "unable to convert str to int" but 'str' is int ?

2021-02-05 Thread 'Felix Fontein' via Ansible Project
Hi, > > you are not templating the parameters, > > How and where should I template the parameters? templating uses `{{` and `}}` (Jinja2 templating). So you have to write option: '{{ templated expression }}' if you want to evaluate `templated expression`, and option: 'templated expr

Re: [ansible-project] BUG: "unable to convert str to int" but 'str' is int ?

2021-02-05 Thread 'Felix Fontein' via Ansible Project
Hi, > server: "{{ server }}" > zone: ca.zone > record: ca.owner_name > ttl: ca.ttl you are not templating the parameters, so the module sees the string "ca.ttl", which cannot be converted to an integer. Cheers, Felix -- You received this message because you are subscribed to t

Re: [ansible-project] Escaping special characters in regex_replace with '\' fails with: unknown escape character

2021-02-03 Thread 'Felix Fontein' via Ansible Project
Hi, the problem is that you're inside a YAML " " string, which already interprets escaping. Try using `>-` or something like that (https://yaml-multiline.info/) instead of double quotes for the string that's templated, like replaced_string: >- {{ searched_string | regex_replace

Re: [ansible-project] how to list ansible collection in collection index.

2021-01-23 Thread 'Felix Fontein' via Ansible Project
Hi, > My question is how do i get this listed in collection index on > docs.ansible.com . i.e. the below link. > https://docs.ansible.com/ansible/latest/collections/index.html the collections listed there are the ones included in the Ansible package (https://pypi.org/project/ansible/) - this is

Re: [ansible-project] Module not found when using collection

2021-01-07 Thread 'Felix Fontein' via Ansible Project
Hi all, > Thanks for the answer, but unfortunately it seems the breaking > changes are about the hasi_vault lookup plugin more precisely, the breaking change affects the hashi_vault lookup plugin in the collection community.hashi_vault. If you simply use 'hashi_vault' without a FQCN, you are usin

Re: [ansible-project] Executable vault password file doesnt work

2021-01-06 Thread 'Felix Fontein' via Ansible Project
Hi, > > ERROR! Problem running vault password client script > > /etc/ansible/my-client.py ([Errno 8] Exec format error). If this is > > not a script, remove the executable bit from the file.* > > What are the ownership and permissions on that file? from the error message, it looks like it is e

Re: [ansible-project] Collection: bundling a txt file

2020-11-26 Thread 'Felix Fontein' via Ansible Project
Hi, > I've a collection where I would like to externalize an array of > strings. At run time, the collection will read their content and > create an array based on the file. The idea being that this list can > change without building again the collection. if the file is included in the collection

Re: [ansible-project] Ansible 2.9.11 > 2.10.3 env lookup giving lookups were disabled from templating error

2020-11-26 Thread 'Felix Fontein' via Ansible Project
Hi, that change was apparently caused by https://github.com/ansible/ansible/pull/69278 I have no idea why it was made, though. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receivin

Re: [ansible-project] A pound '#' sign in password

2020-11-25 Thread 'Felix Fontein' via Ansible Project
Hi, have you tried adding quotes? > username: myuser > password: 'secret#secret' Otherwise YAML might interpret everything after # as a comment. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] Ansible converts dictionary to string while it should not.

2020-11-04 Thread 'Felix Fontein' via Ansible Project
Hi, > I'm having trouble with the cisco.mso.mso_schema module (Doc Page > ). > > I can't get the first example to work and I think I know why, but I > don't know if I can solve it. So let m

Re: [ansible-project] Minimal ansible 2.10.x installation

2020-10-05 Thread 'Felix Fontein' via Ansible Project
Hi Anand, > Now that ansible's code has been reorganised, I have a question about > how to do a minimal installation. I am interested in just these 3 > things: > > 1. ansible-base > 2. ansible.posix collection > 3. community collection do you mean a specific community collection, or all of them,

Re: [ansible-project] Docker Entrypoint

2020-10-01 Thread 'Felix Fontein' via Ansible Project
Hi, > Sorry if it's not the right place, I'm thinking my problem is little > bit similar. > > In guacamole install process, It's suggest to do: > *docker* run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh > --mysql > > *initdb.sql* the stdout redirect is NOT part of the command execut

Re: [ansible-project] Ansible 2.10 - Is all ansible modules are changing....

2020-10-01 Thread 'Felix Fontein' via Ansible Project
Hi, it looks like you installed a nightly build of ansible-base (and **not** Ansible!). If you want to install Ansible 2.10, you can find it on pypi: https://pypi.org/project/ansible/ See also https://groups.google.com/d/msgid/ansible-project/CAPrnkaR_JhtQTZ5NK%3D4ZnhadfgExYEWAVGE4UwFhSfPJanEwDw

Re: [ansible-project] Docker Entrypoint

2020-09-29 Thread 'Felix Fontein' via Ansible Project
Hi, > I am trying to convert big old monolith bash script to ansible, and > I'm about 90% of the way there. > > I am having a bit of trouble with one element, the docker entrypoint. > > The original code along with my Ansible attempt and the entrypoint > debug output is here: https://pastebin.co

Re: [ansible-project] Re: Docker Deployment - Errno 2

2020-09-25 Thread 'Felix Fontein' via Ansible Project
Hi, > Think it's worth a PR ? if you think this is needed, feel free to create one. Cheers, Felix -- 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-

Re: [ansible-project] Re: Docker Deployment - Errno 2

2020-09-25 Thread 'Felix Fontein' via Ansible Project
Hi, > That error looks to me like it is looking for a file named > "['/usr/local/hg/defaults.env', '/var/lib/data/hg/config.env']". > Maybe you can only use one env file? that's correct. The documentation states that the option accepts a path, and not a list of paths. (If you pass a list, that l

Re: [ansible-project] Can't install ansible properly with pip and devel branch

2020-09-09 Thread 'Felix Fontein' via Ansible Project
Hi, > Will installing ansible-lint from its development branch help? probably not, since it requires ansible >= 2.8: https://github.com/ansible/ansible-lint/blob/master/setup.cfg#L73 If you install the other dependencies manually and install it without automatically installing dependencies, it s

Re: [ansible-project] Can't install ansible properly with pip and devel branch

2020-09-09 Thread 'Felix Fontein' via Ansible Project
Hi, > Can it be that ansible-lint breaks it? that's very likely, since it has a dependency on ansible, which right now means ansible 2.9. The situation will get better once Ansible 2.10.0 is released (i.e. later this month). Cheers, Felix -- You received this message because you are subscribed

Re: [ansible-project] Can't install ansible properly with pip and devel branch

2020-09-09 Thread 'Felix Fontein' via Ansible Project
Hi, > I am using: > > sudo pip install git+https://github.com/ansible/ansible@devel > > pip install git+https://github.com/ansible/ansible@devel --user > > to install ansible. I have uninstalled any previous versions. I am > using python 3.8. have you installed previous versions *before* insta

Re: [ansible-project] acme_certificate account_key* support for sectigo CA

2020-08-09 Thread 'Felix Fontein' via Ansible Project
Hi, > > sectigo is my SSL provider and they support the ACME protocol and > > I'd like to leverage the acme_certificate module; however, Sectigo > > seems to use and HMAC key for authentication rather than RSA keys. > > is it possible to use an HMAC key with the set of acme_* modules > > for CAs s

Re: [ansible-project] acme_certificate account_key* support for sectigo CA

2020-07-17 Thread 'Felix Fontein' via Ansible Project
Hi, > sectigo is my SSL provider and they support the ACME protocol and I'd > like to leverage the acme_certificate module; however, Sectigo seems > to use and HMAC key for authentication rather than RSA keys. is it > possible to use an HMAC key with the set of acme_* modules for CAs > such as sec

  1   2   >