Re: [ansible-project] How can I match `\s` or `\t` in a `search` test?

2022-06-20 Thread tterr...@gmail.com
Correction: - assert: that: - q is search('abc\\t' | regex_escape) using regex_escape to avoid escaping manually the backslashes ('abct') On Monday, June 20, 2022 at 11:09:15 PM UTC+2 tterr...@gmail.com wrote: > There is also the case that the search te

Re: [ansible-project] How can I match `\s` or `\t` in a `search` test?

2022-06-20 Thread tterr...@gmail.com
the search test, I need to search for ...b\\t... in single quotes. > On Monday, June 20, 2022 at 9:22:37 PM UTC+2 vbo...@gmail.com wrote: > >> On Mon, 20 Jun 2022 02:36:37 -0700 (PDT) >> "tterr...@gmail.com" wrote: >> >> > q: >> > - 'ab

Re: [ansible-project] How can I match `\s` or `\t` in a `search` test?

2022-06-20 Thread tterr...@gmail.com
0, 2022 at 9:22:37 PM UTC+2 vbo...@gmail.com wrote: > On Mon, 20 Jun 2022 02:36:37 -0700 (PDT) > "tterr...@gmail.com" wrote: > > > q: > > - 'abc' > > - 123 > > > > - debug: > > msg: >- > > {{ q is search('abc\t')

[ansible-project] How can I match `\s` or `\t` in a `search` test?

2022-06-20 Thread tterr...@gmail.com
Here is an example: - hosts: localhost gather_facts: false vars: q: - 'abc' - 123 tasks: - debug: msg: >- {{ q is search('abc\t') }} This returns false. I have tried different variations of the regex, but nothing worked. Is this possible to do? -- Yo

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

2022-05-25 Thread tterr...@gmail.com
I opened an issue: https://github.com/ansible-community/community-topics/issues/105 On Tuesday, May 24, 2022 at 4:55:55 PM UTC+3 Brian Coca wrote: > FYI, the collection is 'owned' by Google itself. > > > -- > -- > Brian Coca > > -- You received this message because you are subscribed

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

2022-05-20 Thread tterr...@gmail.com
Hello, The google.cloud collection: - had only one commit the past 6 months - no release for almost 1.5 years - 90 open and completely unanswered issues - 26 pull requests ignored - does not support hundreds of APIs and operations for google cloud. Also, ansible was removed from the magic module

[ansible-project] Use ansible-test with custom yamllint config

2022-01-21 Thread tterr...@gmail.com
I am trying to use ansible-test to test my collections. So far, ansile-test seems too opinionated of a tool for general-purpose use. For instance, I am trying to use a custom yamlling config with it but i cant find a way. Is this supported? -- You received this message because you are subscrib

[ansible-project] Will collections support namespaced tasks?

2021-04-14 Thread tterr...@gmail.com
I remember quite some time ago reading somewhere a proposed structure for collections that included a tasks folder, along with playbooks, roles, etc. Is support for tasks in collections still planned, so that they can be loaded with `include_tasks: my.namespace.task_file`? -- You received thi

[ansible-project] Register variable in task with loop and use registered results for task conditional

2021-03-29 Thread tterr...@gmail.com
I am trying to run a loop over a task and I am registering the results. The items in the loop are not unique and can repeat. I don't want to run the same item twice. So, in the same task, I want to use a conditional to check if the current loop item has run so far in the loop. For this, I use th

Re: [ansible-project] Can I throttle a task with delay?

2020-09-11 Thread tterr...@gmail.com
Yes, handlers make sense. But what if I want to make requests that have a rate limit, e.g 1req / sec? On Friday, September 11, 2020 at 10:56:26 AM UTC+2 brae...@gmail.com wrote: > On 9/11/20 10:50 AM, tterr...@gmail.com wrote: > > I have an inventory containing a few dozens hosts. &

[ansible-project] Can I throttle a task with delay?

2020-09-11 Thread tterr...@gmail.com
I have an inventory containing a few dozens hosts. I have a short playbook that configures a monitoring service on a single server. I build the contents of a per host config for the monitoring service and then I upload it to the monitoring service and restart the service in order for it to read

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

2020-09-09 Thread tterr...@gmail.com
OK thanks a lot! On Wednesday, September 9, 2020 at 5:59:16 PM UTC+2 Felix Fontein wrote: > 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 i

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

2020-09-09 Thread tterr...@gmail.com
Will installing ansible-lint from its development branch help? On Wednesday, September 9, 2020 at 5:50:42 PM UTC+2 Felix Fontein wrote: > 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 situati

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

2020-09-09 Thread tterr...@gmail.com
Can it be that ansible-lint breaks it? On Wednesday, September 9, 2020 at 5:36:57 PM UTC+2 tterr...@gmail.com wrote: > In the past, yes I had, also from the devel branch using pip. > > At one point, I decided to update and re-installed ansible using pip from > the devel branch.

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

2020-09-09 Thread tterr...@gmail.com
In the past, yes I had, also from the devel branch using pip. At one point, I decided to update and re-installed ansible using pip from the devel branch. I got weird errors, searched, found out I had to remove previous version, I uninstalled everything and then re-installed the devel branch.

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

2020-09-09 Thread tterr...@gmail.com
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. After installation is complete, I do not have the "ansible", "ansible

Re: [ansible-project] Question on using the Ansible API

2020-06-24 Thread tterr...@gmail.com
ad to be run first, so I simply collected > all the variables I needed into one dictionary and then stored that > dictionary in a file for further reuse by other components. > > kind regards > Pshem > > > On Wed, 24 Jun 2020 at 03:54, tterr...@gmail.com > wrote: &g

[ansible-project] Question on using the Ansible API

2020-06-23 Thread tterr...@gmail.com
I have a big ansible project where I have separated my files into playbooks, vars files, an inventory folder and roles. These files make extensive use of jinja templates. For my use case, I need to be able to access the variables in these files outside ansible. So far, I have included `copy` ta