Re: [ansible-project] Slowness problèmes after upgrade from 2.8 to 2.9

2020-10-21 Thread Quentin Aveno
ller node when you're > running ansible. > > El mié., 21 oct. 2020 a las 13:31, Quentin Aveno () > escribió: > >> Hi everyone, >> I have a slowness problem after upgrading ansible from ansible 2.8 to >> ansible 2.9 (and from python 2.7 to python 3 only on

[ansible-project] Slowness problèmes after upgrade from 2.8 to 2.9

2020-10-21 Thread Quentin Aveno
Hi everyone, I have a slowness problem after upgrading ansible from ansible 2.8 to ansible 2.9 (and from python 2.7 to python 3 only on controller). A lot of differents taskes (and différents modules) became very slow (from seconds to more than 5 minutes). After activating debug, I can see à

[ansible-project] convert int index to alphabet letter

2020-06-05 Thread Quentin Aveno
Hi everyone, (It's more a jinja quesion but...) Is there a way to convert a int to an alphabet letter (1 -> a, 2 -> b...) More aesthetic than (with a filter and less useless variables): letters: 'abcdefghijklmnopqrstuvwxyz' index: "{{ groups['group1'].index(inventory_hostname) }}"

Re: [ansible-project] Directories create twice

2020-05-07 Thread Quentin Aveno
2020 12:00:27 UTC+2, Dick Visser a écrit : > > without actually looking into it, this does sound very much like a > (missing) trailing slash issue somewhere > > On Thu, 7 May 2020 at 11:00, Quentin Aveno > wrote: > > > > Hello ! > > > > I have an

[ansible-project] Directories create twice

2020-05-07 Thread Quentin Aveno
Hello ! I have an issue concerning modules find then copy (with relpath filter) I have a role : - name: "Test" hosts: localhost vars: archive_name: "/opt/archive.tgz" local_tmp_dir: path: "/tmp/tmp" dest_directory: "" tasks: - name: "[Module] Download and unarchive

[ansible-project] Meta dependancies and template

2020-04-23 Thread Quentin Aveno
Hi everyone, little question here : Did a template in a role can be used/seen by another role in the meta of the first one? -- 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,

Re: [ansible-project] Omit item in list

2020-03-23 Thread Quentin Aveno
Thanks Vlad for your proposition. Excuse me for don't be enough precise in my first comment, but it's a more complex dict (than the example) and I can't split in two lists, it have to be one list and some items which could be undefined/omit. I'm not the only one to use those variables and the

[ansible-project] Re: Omit item in list

2020-03-23 Thread Quentin Aveno
It's look like I misunderstood omit behavior and there is no way to do what I'm trying to do : https://github.com/ansible/ansible/issues/22417 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

[ansible-project] Re: Omit item in list

2020-03-23 Thread Quentin Aveno
I would like, if it's possible, to not change the task itself, only the variables. Thank you, Have a nice day even in these difficult times Le lundi 23 mars 2020 17:42:29 UTC+1, Quentin Aveno a écrit : > > Hi ! > Is there any way to omit a item in Citer le message d'origine

[ansible-project] Omit item in list

2020-03-23 Thread Quentin Aveno
Hi ! Is there any way to omit a item in a list at the declaration ? - name: "Test" hosts: localhost vars: test1: false test2: - name: test21 includes: - { file: "file221.j2", path: "/somewhere/" } - { file: "file222.j2", path: "/somewhere/" }

Re: [ansible-project] Jinja2 iterate over strings and lists

2020-03-09 Thread Quentin Aveno
Thanks, that's thé filter I looking for. Have a nice nice day ! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[ansible-project] Jinja2 iterate over strings and lists

2020-03-06 Thread Quentin Aveno
Hi guys, I got a question concerning list of lists and strings. I have something like : - name: test vars: test1: "test1" test2: - "test21" - "test22" test3: - "{{ test1 }}" - "{{ test2 }}" debug: msg: "{% for tt in test3 %} {{ tt }} {% endfor

[ansible-project] Know if a variable come from extra_vars

2020-03-03 Thread Quentin Aveno
Hi ! I think it's not possible, but is there a way to check than a variable came from extra_vars and not from another location (inventory...) ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Re: Lookup vault in memory

2019-11-20 Thread Quentin Aveno
Thanks vlado for your responses. Yes, sorry for not being clear, password1 was defined in an inventory. It's almost clear now. Does it mean that if i use a variable from inventory twice It will be evaluate twice or the variable will be store in memory ? Same question for lookup directly in

Re: [ansible-project] Re: Lookup vault in memory

2019-11-20 Thread Quentin Aveno
logical to me than the first one is safer and evaluate later Le mercredi 20 novembre 2019 14:44:38 UTC+1, Vladimir Botka a écrit : > > On Wed, 20 Nov 2019 05:09:01 -0800 (PST) > Quentin Aveno > wrote: > > > > When I use a lookup with vault, is the pass is store

[ansible-project] Re: Lookup vault in memory

2019-11-20 Thread Quentin Aveno
was safer. Am I right ? Le mercredi 20 novembre 2019 13:47:19 UTC+1, Quentin Aveno a écrit : > > Hi, > I have a question about lookup and memory: > When I use a lookup with vault, is the pass is store in memory when I use > it directly in a task or pass it through a variable

[ansible-project] Lookup vault in memory

2019-11-20 Thread Quentin Aveno
Hi, I have a question about lookup and memory: When I use a lookup with vault, is the pass is store in memory when I use it directly in a task or pass it through a variable in an inventory ? Is there a significant difference ? Have a nice day. -- You received this message because you are