[ansible-project] Re: ANSIBLE - Venv - Use /usr/bin/ansible

2022-12-16 Thread julien mahieu
Finally, the problem was related to security restrictions on the partition where my venv was located. It works perfectly on another mounting point. Ju Le mardi 13 décembre 2022 à 17:09:32 UTC+1, julien mahieu a écrit : > Hi experts, > > In order to manage network devices, I&#x

[ansible-project] ANSIBLE - Venv - Use /usr/bin/ansible

2022-12-13 Thread julien mahieu
Hi experts, In order to manage network devices, I'm currently setting up an environment with ansible inside a python venv on a linux Alma 8 platform. Below, the steps I used to install the components : *# Venv creation* [MyUser@MyAnsibleVm ~]$python3 -m venv ansible4.10 [MyUser@MyAnsibleVm ~]$s

Re: [ansible-project] url lookup fails on my Apple M1

2021-03-26 Thread Julien Tognazzi
nt-557016371. I > have not tried this solution personally. > > On Fri, Mar 26, 2021 at 4:52 PM Julien Tognazzi > wrote: > >> Dear list, >> >> The following play fails on my ansible installation: >> - hosts: localhost >> gather_facts: false >> &g

[ansible-project] url lookup fails on my Apple M1

2021-03-26 Thread Julien Tognazzi
Dear list, The following play fails on my ansible installation: - hosts: localhost gather_facts: false tasks: - set_fact: toto: "{{ lookup('url', 'https://google.ch') }}" The error is objc[57643]: +[__NSCFConstantString initialize] may have been in progress in another thread when f

Re: [ansible-project] ansible 2.9 yaml inventory and group ordering

2021-02-10 Thread Julien Tognazzi
I checked, on centos-7, latest python3 is 3.6.8-18.el7 So going to >= 3.8 is not an easy task. On Wednesday, February 10, 2021 at 7:01:03 PM UTC+1 Julien Tognazzi wrote: > So no backport to 2.9 ? > > On Wednesday, February 10, 2021 at 6:50:56 PM UTC+1 Brian Coca wrote: > >

Re: [ansible-project] ansible 2.9 yaml inventory and group ordering

2021-02-10 Thread Julien Tognazzi
So no backport to 2.9 ? On Wednesday, February 10, 2021 at 6:50:56 PM UTC+1 Brian Coca wrote: > It was added to 2.10, but you can get 'similar' results by using a python > >=3.8 > > -- > -- > Brian Coca > > -- You received this message because you are subscribed to the Google Groups

[ansible-project] ansible 2.9 yaml inventory and group ordering

2021-02-10 Thread Julien Tognazzi
Dear list, I recently changed from a ini inventory to a yaml one. And I was hit by a change in the groups ordering on Centos-7. ansible 2.9.17 config file = /opt/devtools-work/bamboo/xml-data/build-dir/1179649/135102466-135168007/ansible.cfg configured module search path = [u'/opt/devt

Re: [ansible-project] Forced --limit

2020-05-13 Thread Julien Seknazi
condition, host is in group_1. Thank you :) Le mercredi 6 mai 2020 18:54:52 UTC-4, James Cassell a écrit : > > > On Wed, May 6, 2020, at 4:35 PM, Julien Seknazi wrote: > > Hi! > > > > I hope everything it's ok for you. > > > > > >

Re: [ansible-project] Forced --limit

2020-05-06 Thread Julien Seknazi
Thank you James! I'll try that tomorrow! Have a good 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+unsubscr...@googlegroups.com. To vie

[ansible-project] Forced --limit

2020-05-06 Thread Julien Seknazi
Hi! I hope everything it's ok for you. I would like to know if it's possible to use mandatory "--limit" when you run : "ansible-playbook site.yml --limit DEVICE_1" I explain, if i don't use --limit, my playbook will deploy on all my devices. Me, I want my playbook don't run if --limit is

[ansible-project] Python 2, Python 3, Conda, and ansible modules dnf and docker_container

2020-03-02 Thread Julien Cochennec
Hi, When using Docker CE on RHEL 7, installed whith Ansible (python 2.7 on target), docker_container module fails, saying I should install docker or docker-py, but I can't find a way to make it work. Python 2.7 being unsupported since January, I tried to switch to Python 3. The yum module says it

[ansible-project] Re: network unreachable

2019-10-21 Thread Julien Cochennec
I forgot ton mention that http_proxy and https_proxy are defined on both admin and target Le mardi 22 octobre 2019 08:50:52 UTC+2, Julien Cochennec a écrit : > > Hi, > Searching proxy in this list, I found no answer, so maybe it's not a proxy > issue : > > I run a playb

[ansible-project] network unreachable

2019-10-21 Thread Julien Cochennec
Hi, Searching proxy in this list, I found no answer, so maybe it's not a proxy issue : I run a playbook with following task : - name: download miniconda installer get_url: url={{ miniconda_url }} dest={{ miniconda_tmp }}/miniconda.sh mode=0755 register: miniconda_downloaded whe

Re: [ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Julien Cochennec
Ok, that's a lot of solutions, I'll test it all. Thank you all. Le lundi 21 octobre 2019 19:29:35 UTC+2, Uriel a écrit : > > Depending on your requirements for parity, you might be able to get away > with using RHEL7 container images for testing. I've recently started > exploring some testing p

Re: [ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Julien Cochennec
Ok thanks a lot Le lun. 21 oct. 2019 à 17:52, Stefan Hornburg (Racke) a écrit : > On 10/21/19 6:43 PM, Julien Cochennec wrote: > > I don't have such VM, but I guess I can build one. > > How would you do? The VM would be both admin and target? Or would you > build an ad

Re: [ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Julien Cochennec
lundi 21 octobre 2019 17:29:16 UTC+2, Stefan Hornburg (Racke) a écrit : > > On 10/21/19 6:20 PM, Julien Cochennec wrote: > > Hi, Ansible Noob here. > > > > We're developing ansible roles and playbooks for production VMs which > are RHEL7 systems. > > W

[ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Julien Cochennec
Hi, Ansible Noob here. We're developing ansible roles and playbooks for production VMs which are RHEL7 systems. We can't test our playbook on those machines because they are dedicated to another service. So we only can test playbooks on Docker Images similar to VMs, installing the same software

[ansible-project] I would like to open a web browser with ansible

2018-10-20 Thread Julien
all vivaldi windows win_shell: start-process -FilePath 'C:\Users\Julien\AppData\Local\Vivaldi\Application\vivaldi.exe' -ArgumentList 'www.site.com' Thank you Petit Julien. -- You received this message because you are subscribed to the Google Groups "Ansible Project&qu

Re: [ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
If someone looking for to eliminate whitespaces, here's the synthax: grp_name: > {% if (First == 'Hello 1') and (Second == 'Hello 3') *-*%} IM-A-Group1 {%*- *elif (First == 'Hello 3') and (Second == 'Hello 2')* -*%} IM-A-Group2 {%- elif (First == 'Hello 1') and (Second == 'Hell

Re: [ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
Thanks you a lot for your help, Best Regards, Julien. -- 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+unsubscr...@googlegroups.co

[ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
the variable more readable? If yes could you help me with the synthax? Thank you, Julien. -- 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-pr

[ansible-project] Re: Need help with win_package [msi file with TRANSFORMS]

2018-08-30 Thread Julien
Missed the " " on the command, here it is : *msiexec /i "C:\tmp\The msi package.msi" /passive **TRANSFORMS='"Group Policy Deployment.mst"'* Le jeudi 30 août 2018 14:41:11 UTC+2, Julien a écrit : > > Hi Jon and thank's for the reply, > >

[ansible-project] Re: Need help with win_package [msi file with TRANSFORMS]

2018-08-30 Thread Julien
up Policy Deployment.mst"'*) on powershell works fine Have you got any other solutions? Sorry for the late of the answer, i were on vacation Best Regards, Julien. Le mercredi 8 août 2018 10:41:46 UTC+2, J Hawkesworth a écrit : > > Try putting all the arguments on one line perhaps?

[ansible-project] Re: help with with_items

2018-08-30 Thread Julien
Hello Karl, Can you try like this? - hosts: localhost vars: nlb_subnet_mappings: - SubnetId: fred AllocationId: 100 - SubnetId: mary AllocationId: 200 tasks: - debug: var: item with_items: *"{{ nlb_subnet_mappings }}"* I hope this is

[ansible-project] Need help with win_package [msi file with TRANSFORMS]

2018-08-08 Thread Julien
licy Deployment.mst"' state: present*The problem is that the Windows installer process always stay inactive Someone's know the exact synthax for this task? Best Regards Julien. -- You received this message because you are subscribed to the Google Groups "Ansible Project&qu

[ansible-project] Re: I want to make a specific loop but don't know the way how to do it

2018-08-03 Thread Julien
I always need a solution :) up -- 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+unsubscr...@googlegroups.com. To post to this group, send email

[ansible-project] Re: Adding windows as client to Ansible server

2018-08-03 Thread Julien
Hello Vamsi, Can you try to run this script into your windows host and retry? It is an official script made by ansible team to configure WinRM https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -- You received this message because you are subscribe

[ansible-project] get the value of Json vars ansible

2018-03-06 Thread Brunet Julien
*Hello * *I faced a issue with items , i would like to get the value of Json vars.* *But i can't access/get the value.* *I write this ansible script :* --- # tasks file for ansible-f5 - name: Define f5_environment vars set_fact: env_f5: "QLF" - name: Collect BIG-IP facts bigip_facts:

[ansible-project] Re: nxos_acl module

2018-01-23 Thread Julien Guirlinger
Interesting way of doing it. What do you mean by : > *Also, the idempotency works at the ACL level but the module at the ACE > level and that always worried me* > Thank you for the feedback Julien On Monday, January 22, 2018 at 4:12:18 PM UTC+1, Claudia de Luna wrote: > > H

[ansible-project] nxos_acl module

2018-01-16 Thread Julien Guirlinger
happy to have feedback of how you achieve it. Thanks Julien -- 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+unsubscr...@googlegroup

[ansible-project] async status error when used with become...

2017-11-10 Thread Julien Tognazzi
@/home/user1/test/async.retry PLAY RECAP * localhost : ok=4changed=1unreachable=0failed=1 here, /home/user1/ansible.cfg is just an empty file. the first pl

Re: [ansible-project] Where to put environnement specific config files to copy (not templated)

2017-09-13 Thread Julien Musat
a bit arcane IMO. Better to be explicit.) > > > On 13 September 2017 at 10:46, Julien Musat > wrote: > > Hi, > > > > My ansible project is multi env. I managed to put each inventory file in > a > > separate directory (as advise in ansible best pract

[ansible-project] Where to put environnement specific config files to copy (not templated)

2017-09-13 Thread Julien Musat
Hi, My ansible project is multi env. I managed to put each inventory file in a separate directory (as advise in ansible best practices : http://docs.ansible.com/ansible/latest/playbooks_best_practices.html#alternative-directory-layout) I have a question regarding env specific config file. For i

[ansible-project] Re: docker_login and GCR

2017-06-19 Thread julien singler
Hi Dmitry, Almost a year after you, I've the same problem. I guess you fixed your problem another way, but for anyone that is currently in the same situation, I found a trick to not let the lookup interpret your json .. By digging on this forum : https://groups.google.com/forum/#!topic/ansibl

[ansible-project] Ansible custom module and custom Python library

2017-02-06 Thread Julien Buonocore
feedback, Julien. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansib

[ansible-project] Ansible custom module and custom python library

2017-02-06 Thread Julien Buonocore
, Julien. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansib

[ansible-project] yum module and with_items: confusing error output

2016-10-21 Thread Julien Tognazzi
Dear list, I noticed the following behaviour with ansible 2.1.1.0 the following play: - hosts: all become: true tasks: - name: Install required packages yum: name={{ item }} state=latest update_cache=yes with_items: - donotexist-1.2 output: $ ansible-playbook -i myinventory y

[ansible-project] Re: DNS lookup issue on Ansible

2016-09-16 Thread Julien Deloubes
y, June 17, 2016 at 2:20:55 PM UTC+1, Julien Deloubes wrote: >> >> Problem disappeared but finally reappeared after a few successful runs! >> I can always ssh on the impacted hosts. >> Don't know where to search? Is Ansible has some sort of dns cache or >> something?

Re: [ansible-project] get_url newbie question

2016-09-15 Thread Julien Vey
Actually, this works just fine (tested with ansible-playbook 2.1.1.0) until: get_url_result | succeeded Le vendredi 2 janvier 2015 16:42:25 UTC+1, Martin Palecek a écrit : > > If the file is already present, then the get_url_result.msg does not > contain 'OK'. I had to use > until: "'OK' in get_

[ansible-project] Re: Behavior change related to roles_path config with relative include

2016-09-02 Thread Julien Tognazzi
There is already an open issue about this see #16747 <https://github.com/ansible/ansible/issues/16747> On Thursday, August 11, 2016 at 12:25:14 PM UTC+2, Julien Tognazzi wrote: > > Hi list, > > I upgraded ansible with the latest epel-testing > version ansible-2.1.1.0-1.el7

[ansible-project] Re: Behavior change related to roles_path config with relative include

2016-09-02 Thread Julien Tognazzi
where the ansible.cfg file is ! Before, it was relative to the execution directory. This change breaks some of my playbooks. Do I have to modified my layout or can this be considered as a regression and fixed ?? thanks you for reading. Julien. On Thursday, August 11, 2016 at 12:25:14 PM UT

[ansible-project] Behavior change related to roles_path config with relative include

2016-08-11 Thread Julien Tognazzi
Hi list, I upgraded ansible with the latest epel-testing version ansible-2.1.1.0-1.el7.noarch and noticed a change with the roles_path configuration. This is my roles_path: roles_path= /etc/ansible/roles:../base/roles:./roles So I expect that if I run a playbook from /vagrant/ansible/somed

[ansible-project] Re: DNS lookup issue on Ansible

2016-06-17 Thread Julien Deloubes
Problem disappeared but finally reappeared after a few successful runs! I can always ssh on the impacted hosts. Don't know where to search? Is Ansible has some sort of dns cache or something? Le dimanche 12 juin 2016 16:57:59 UTC+2, Julien Deloubes a écrit : > > Hello, > i have a s

[ansible-project] DNS lookup issue on Ansible

2016-06-12 Thread Julien Deloubes
Hello, i have a strange problem on Ansible 2.0, my playbook couldn't resolve anymore the fqdn of my inventory. I can ssh to the machines in my inventory. I tried using an inventory file or specify the hosts with the -i option. I can run the playbook using the ip @. I'm scratching my head about wha

[ansible-project] Some Ansible Windows winrm variables doesn't seems to be use

2016-06-08 Thread Julien Savard
Hi, It seems ansible does not use the variables in /etc/ansible/hosts for winrm connection : In /etc/ansible/hosts : [windows] 10.10.10.10 [windows:vars] ansible_user=WindowsUser ansible_password=UserPassword ansible_winrm_scheme=http ansible_port=5985 ansible_connection=winrm ansible_winrm_se

[ansible-project] Re: Issue using delegate_to and with_items

2016-05-24 Thread Julien Tognazzi
This is fixed with ansible 2.0.2.0 sorry for the noise. On Tuesday, May 24, 2016 at 4:34:15 PM UTC+2, Julien Tognazzi wrote: > > Hi, > > Is the use of delegate_to with with_items supposed to work ? > > $ ansible --version > ansible 2.0.1.0 > config file = /vagrant/sy

[ansible-project] Re: Issue using delegate_to and with_items

2016-05-24 Thread Julien Tognazzi
this seems related: https://github.com/ansible/ansible/issues/14166 On Tuesday, May 24, 2016 at 4:34:15 PM UTC+2, Julien Tognazzi wrote: > > Hi, > > Is the use of delegate_to with with_items supposed to work ? > > $ ansible --version > ansible 2.0.1.0 > config file = /

[ansible-project] Issue using delegate_to and with_items

2016-05-24 Thread Julien Tognazzi
*** ======= TASK: command --- 6.69s TASK: setup - 0.25s Playbook run took 0 days, 0 hours, 0 minut

[ansible-project] with_items task and when: statement

2016-05-19 Thread Julien Tognazzi
; when: item is defined Do you have some other suggestion ? thanks for your help. Julien. -- 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 ansibl

[ansible-project] Re: [DEPRECATION WARNING]: Skipping task due to undefined Error

2016-04-21 Thread Julien Tognazzi
I forgot to add that if using the bare variable with with_items, it doesn't generate the previous warning. On Thursday, April 21, 2016 at 1:59:32 PM UTC+2, Julien Tognazzi wrote: > > Hi, > > running the following play generate this not so useful DEPRECATION WARNING > ---

[ansible-project] [DEPRECATION WARNING]: Skipping task due to undefined Error

2016-04-21 Thread Julien Tognazzi
ld prevent it to run, isn't it ? What am I missing ? Should I file an issue for this ? thanks for any tips. Julien. -- 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 i

[ansible-project] Re: local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Julien Tognazzi
I justed tested with ansible 2 RC2 and I have the same behavior. Maybe I should add that the server is a CentOS 6 box. On Tuesday, December 15, 2015 at 1:02:56 PM UTC+1, Julien Tognazzi wrote: > > Hi all, > > Is it the expected behavior that the value of ansible_domain and

[ansible-project] local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Julien Tognazzi
2.3.4 otherserver.otherdomain.ch $ ansible -i test localhost -m setup | grep "domain|fqdn" "ansible_domain": "otherdomain.ch", "ansible_fqdn": "otherserver.otherdomain.ch", "facter_domain": "mydomain.ch",

[ansible-project] How to loop over these items ?

2015-08-24 Thread Julien Syx
Hello everyone, I'm trying to create a role to manage backup with this script: https://github.com/redhat-cip/simple_ec2_snapshot I would like to take in parameter a tags list (for example), then create a cron with the right command line. How to iterate over the list and construct my command fo

[ansible-project] Ansible up and running book - first playbook exampe

2015-06-22 Thread Julien Deloubes
Hello, just learning Ansible with Vagrant and the help of the book "Ansible up and running". I cannot execute the first playbook in the book i always had a syntax error. Ansible version: 1.9.1 Playbook : - name: Configure webserver with nginx hosts: webservers sudo: True tasks: - name: instal

[ansible-project] Re: Terminate all instances in a ASG with ec2_asg

2015-03-12 Thread Julien Syx
An issue has been filled here : https://github.com/ansible/ansible-modules-core/issues/931 Le mercredi 11 mars 2015 14:47:55 UTC+1, Julien Syx a écrit : > > Hello, > > I'm trying to use the ec2_asg module here : > http://docs.ansible.com/ec2_asg_module.html > The goal i

[ansible-project] Terminate all instances in a ASG with ec2_asg

2015-03-12 Thread Julien Syx
Hello, I'm trying to use the ec2_asg module here : http://docs.ansible.com/ec2_asg_module.html The goal is to kill all instances during the night and boot them the morning. I tried : - name: Shutdown PREPROD hosts: localhost remote_user: root tasks: - name: Shutdown instances ec2_

[ansible-project] Conditionnal include and group_by in roles

2014-12-29 Thread Julien Pepy
x27;s designed to be used in a playbook, so it's not a real solution for a multi-OS role. I think I've listed every alternative, but I may be missing something. If that's not the case, would it be possible to extend the task include statement to handle properly the when claus

Re: [ansible-project] when conditional and IP address, is this a bug ?

2014-05-13 Thread Julien Tognazzi
when statement, you don't need to quote the whole > line and you need to individually quote the IP address. > -- > Matt Martz > ma...@sivel.net > > On May 13, 2014 at 11:17:24 AM, Julien Tognazzi > (julien@gmail.com) > wrote: > > Hello, > > Runni

[ansible-project] when conditional and IP address, is this a bug ?

2014-05-13 Thread Julien Tognazzi
? Is is a bug ? My ansible version is 1.5.5 on centos6 Thanks, Julien. -- 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+unsubscr

[ansible-project] Provisioning a Vagrant box: is Ansible installed on the guest or the host machine?

2014-03-03 Thread Julien Martin
, Julien. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansib

Re: [ansible-project] Set environment variables for a whole playbook or a role

2014-02-21 Thread Julien DAUPHANT
Ok thanks for your answer. If I find the time, I will code it and made a pull request. Best regards, Julien Focus problems when you work on your computer ? try http://www.boxti.me Empty and full Velib' station bother you ? try http://www.veliberation.fr You love Scala, FreeBSD, Ansible

Re: [ansible-project] Counter in with_items loop ?

2014-01-23 Thread Julien Tognazzi
I was on this page, but somehow I missed it. Thank you ! On Thursday, January 23, 2014 12:59:30 PM UTC+1, Serge van Ginderachter wrote: > > I think you look for this: > > > > http://docs.ansible.com/playbooks_loops.html#looping-over-a-list-with-an-index > > > On 23

[ansible-project] Counter in with_items loop ?

2014-01-23 Thread Julien Tognazzi
/path/to/some/script item3 any suggesstions ? Many thanks, Julien. -- 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+unsubscr...@