[ansible-project] Create VM from ISO on ESXI

2020-05-11 Thread Karther
Hello Guy !! ;) I am trying to create an Eyes Of Network virtual machine from an ISO on an ESXI through a vCenter. I try to use the task below but it doesn't work :( Can you tell me if this is the right module to use please? - name: Create a virtual machine from a template vmware_guest:

Re: [ansible-project] Create module mssql_query Error port

2020-01-30 Thread Karther
Hello, I have the same error like with port int in my programme python The creation module Ansible in well in contexte "Ansible project" ... :/ Thanks you Karther Le mercredi 29 janvier 2020 14:42:57 UTC+1, Stefan Hornburg (Racke) a écrit : > > On 1/29/20 2:36 PM, Karther w

[ansible-project] Create module mssql_query Error port

2020-01-29 Thread Karther
thout port: 1433 i have the same error I don't know why ? Can you help me please !! Best Regards, Karther -- 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,

[ansible-project] Create module ansible

2020-01-29 Thread Karther
database: *my_database* file_sql: *./script_sql.sql* Someone can you help me for transform my program python in module ansible please ? Thanks you very much !! :) Best regards, Karther -- You received this message because you are subscribed to the Google Groups "Ansible Proje

Re: [ansible-project] Execut script with Ansible

2020-01-29 Thread Karther
sql02", user="sa_ofs", password="#Adm!n0fS1", database="my_database")* *cur = conn.cursor()* *with open('real.sql') as f:* *cur.execute(f.read().decode('utf-8'))* *conn.commit()* *cur.close()* Do you understand what i want please Commu

Re: [ansible-project] Execut script with Ansible

2020-01-29 Thread Karther
Hello, Yes my task is this : - name: "Execut script python" shell: ./myscript.py delegate_to: localhost I want to get statut of my command line in my script for get message error. Thanks very much Community Ansible :) Best Regards, Karther Le mardi 28 janvier 2020 17:54:58 UTC

Re: [ansible-project] Execut script with Ansible

2020-01-28 Thread Karther
vier 2020 12:33:03 UTC+1, P. Varsha a écrit : > > can you please share what actually error log you are getting. > > On Tue, Jan 28, 2020 at 4:13 PM Karther > > wrote: > >> Hello, >> >> I have one script python script.py with this content : >> >> *#!/u

[ansible-project] Execut script with Ansible

2020-01-28 Thread Karther
sql') as f:* *cur.execute(f.read().decode('utf-8'))* *conn.commit()* *cur.close()* i want that when i execut this script in ansible, i have log error in file or windows if there is error in this script ? Can you help me please ? Thanks very much guy !! Best Rega

[ansible-project] Re: prompt with loop

2020-01-17 Thread Karther
up !! Can you help me please !! :) Best Regards, Karther Le jeudi 16 janvier 2020 17:32:29 UTC+1, Karther a écrit : > > I would like that with each creation of vm of my csv file, it asks me for > a confirmation o / n which I put in my prompt? > > Example: > > Would you l

[ansible-project] prompt with loop

2020-01-16 Thread Karther
device_type: vmxnet3 register: deploy_vm delegate_to: localhost loop: "{{ report_csv.list }}" loop_control: loop_var: vm when: choix_utilisateur == "o" and inventory_hostname in groups['ESXI'] Someone have any idea please ?? Thanks you ver

[ansible-project] Ansible create module mssql_querry

2020-01-15 Thread Karther
yload_hXTFhK/__main__.py\", line 143, in main\nTypeError: connect() got an unexpected keyword argument 'port'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} Someone have any ide

[ansible-project] Ansible - How get status of all users on my Active Directory Windows

2020-01-15 Thread Karther
sible ;) Best Regards, Karther -- 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 view this discussion o

[ansible-project] ansible ignore_errors: yes

2020-01-14 Thread Karther
me please !!! ^_^ Thanks you very much community Ansible !! :) Best regards, Karther -- 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-projec

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
in/ansible* * python version = 2.7.9 (default, Sep 14 2019, 20:00:08) [GCC 4.9.2]* Maybe 2.8.0.dev0 is not good version ? It's not same that version 2.8.0 ? Thanks for your answers !! :) Best regards, Karther Le mardi 14 janvier 2020 15:33:03 UTC+1, Dick Visser a écrit : > > Ansible to

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
And, I have this problem only with module read_csv it's very strange ... all parameters are well indented Can you help me please ... Best regards, Karther Le mardi 14 janvier 2020 15:07:11 UTC+1, Karther a écrit : > > Hey Vladimir, > > The error is : > > *ERROR! no

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
pending on the exact syntax problem.* *The offending line appears to be:* *- name: "Read users from CSV file and return a list"* * ^ here* Thanks for your help !! :) Best regards, Karther Le mardi 14 janvier 2020 14:12:28 UTC+1, Vladimir Botka a écrit : > > On Tue, 14 Ja

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
,'* * register: file_csv* * delegate_to: localhost* Best Regards, Karther Le lundi 13 janvier 2020 17:35:07 UTC+1, Vladimir Botka a écrit : > > On Mon, 13 Jan 2020 08:10:14 -0800 (PST) > Karther > wrote: > > > filename,state,note,temps > > file1,0,my fisrt note

[ansible-project] Create file who is in my csv file

2020-01-13 Thread Karther
v_file.csv delimiter=,') }}" but not works, my goal is that create all file sucessively (file1, file2, file3, ...) in some repertory Someone have any idea please ? Thanks very much community ansible !! ;) Regards, Karther -- You received this message because you are subscribed

[ansible-project] Re: Ansible - How register some line in variable

2019-12-31 Thread Karther
Hey, no I have this result with this task : "msg": "exactly as you see\nwill appear these three\nlines of poetry\n" Can you help me please ?? :) Thanks very much, Best Regards, Karther Le jeudi 12 décembre 2019 22:48:49 UTC+1, j1f0x a écrit : > >

[ansible-project] Ansible create module connect MSSQL

2019-12-30 Thread Karther
sql.Error as ex: module.fail_json(msg='Unable to connect to database: {}'.format(ex)) (changed, result, rowcount) = run_query(module, db_connection, as_dict=module.params['as_dict']) module.exit_json(changed=changed, res

[ansible-project] Re: Ansible play task if error in my running playbook

2019-12-30 Thread Karther
U please !!! Someone can help me please Community Ansible !! :) Regards, Karther Le lundi 30 décembre 2019 10:42:58 UTC+1, Karther a écrit : > > Hello !! :) > > I want execut task in ansible if my playbook filed and stop ... > > *exemple :* > > If when my playbook

Re: [ansible-project] Ansible problem with command shell : mail

2019-12-30 Thread Karther
#x27;s for that i use commande mail and not module of ansible ... Thanks for your help community ansible !! ^_^ Regards, Karther Le lundi 30 décembre 2019 11:50:35 UTC+1, Dick Visser a écrit : > > Try using the native mail module instead of shell: > https://docs.ansible.com/ans

[ansible-project] Ansible play task if error in my running playbook

2019-12-30 Thread Karther
much community Ansible !!! :) Best Regards ^-^ Karther -- 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] Ansible - Display message color

2019-12-24 Thread Karther
mmunity Ansible !!! =) Best Regards, Karther -- 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 view t

Re: [ansible-project] Ansible - How register some line in variable

2019-12-10 Thread Karther
, Stefan Hornburg (Racke) a écrit : > > On 12/10/19 3:20 PM, Karther wrote: > > Hey Community ansible !! :) > > > > I have some line texte with this content : > > > > my first line > > my second line > > > > my 3ème line > > my 4èm

[ansible-project] Ansible - How register some line in variable

2019-12-10 Thread Karther
Hey Community ansible !! :) I have some line texte with this content : my first line my second line my 3ème line my 4ème line I want register all this line with one variable ? i don't know if possible or not please ??? Can you help me please Community Ansible ? :) Best regards, Ka

[ansible-project] Ansible - How attribute 2 value in one variable

2019-11-21 Thread Karther
ansible ??? Thank you very much !!! :) Regards, Karther -- 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] Probleme ansible with build Jenkins

2019-11-18 Thread Karther
unity ansible ??? Thank you very much !! :) Regards Karther -- 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...@go

[ansible-project] How get hold file or repertory

2019-10-25 Thread Karther
ansible 4096 Sep 11 10:47 db-component_2019-09-11_10h47_17 I need an ansible spot that can recover the oldest folder in this repertory. Someone have idea please community ansible ! :) Regards, Karther -- You received this message because you are subscribed to the Google Groups

[ansible-project] Backup of variable with ansible

2019-10-24 Thread Karther
Hey, I have file var with this content : version: 3-40-00 I have this task who create repertory : - name: "Create repertory if run_db_test.sh is execut" file: path: /home/ansible/hospitalis_sql/gis-db-patch-{{ hold_version}}-{{ version }} state: directory delegate_to: localhost Wh

[ansible-project] Re: Ansible return code ok or ko

2019-10-04 Thread Karther
n help me please guy !! Thanks very much, Regards, Karther Le vendredi 4 octobre 2019 10:50:24 UTC+2, Karther a écrit : > > Hey Jon, > > Thanks for your help but i don't understand. > If my first question is so complexe, i want other solution. > > I want get value of play

[ansible-project] Re: Ansible return code ok or ko

2019-10-04 Thread Karther
ry much community ansible !!! :) Regards, Karther Le jeudi 3 octobre 2019 18:53:28 UTC+2, J Hawkesworth a écrit : > > If any of your tasks fail, you will get a non-zero return code when > ansible-playbook runs. > So you can wrap your ansible-playbook in a bash script if you nee

[ansible-project] Ansible return code ok or ko

2019-10-03 Thread Karther
Hey, I want to know if possible that Ansible, when he finish deployment, he display return code. I d'ont know the value of this return code but i want a return code. For exemple : 0 -> The deploiement it's OK 1 -> The deploiement is' KO I don't know if exist one module for this problem ... S

Re: [ansible-project] Ansible problem when i use --check

2019-09-10 Thread Karther
Hey !! :) Thanks very much for your answer community Ansible !! ^^ If i use this condiiton *when: not ansible_check_mode* i don't can verify if my task works ... :/ It's very pity that aspect check mode is not full and strong... :( Thanks, Regards, Le vendredi 6 septembre 2019 17:14:01 UTC+2

[ansible-project] Re: Ansible problem when i use --check

2019-09-05 Thread Karther
Someone can help me please community ansible ??!! Thanks very much !! :) Regards, Le jeudi 5 septembre 2019 16:48:50 UTC+2, Karther a écrit : > > Hey ! > > I have problem when i use this command *ansible-playbook playbook.yml > --check* > > All works normaly without *--

[ansible-project] Ansible problem when i use --check

2019-09-05 Thread Karther
omeone have any idea please community ansible ??!! =) Thanks very much !! ^^ Regards, Karther -- 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 emai

[ansible-project] Re: Ansible for Cisco CallManager

2019-08-22 Thread Karther
Hello, https://blogs.cisco.com/datacenter/ansible-and-ucs-manager https://groups.google.com/forum/#!topic/ansible-project/PR40EEbftuI Regards, Le mardi 13 août 2019 11:58:48 UTC+2, rajthecomputerguy a écrit : > > Hi Team, > > Anybody using Ansible for cisco call manager? > > thanks > -- You r

Re: [ansible-project] When yum succeeds, boot?

2019-08-22 Thread Karther
Vladimir Botka, I certifie , You are the best Vladimir !! :) Very the best :) Regards, Le dimanche 18 août 2019 11:47:27 UTC+2, Vladimir Botka a écrit : > > On Sun, 18 Aug 2019 03:45:20 -0500 > Mike Eggleston > wrote: > > I am working on a playbook that uses yum. When yum does an update of a

Re: [ansible-project] get indice in csv file

2019-08-22 Thread Karther
indice: "{{ indice|default([]) + [item.split(',')[0]] }}" >... > > -vlado > > > On Wed, 21 Aug 2019 08:36:58 -0700 (PDT) > Karther > wrote: > > > Hey, > > > > I have on file csv "clef_applicatives.csv" wi

Re: [ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Karther
Hey, How do that please ??? I am amateur for ansible Thanks, Regards, Le mercredi 21 août 2019 14:57:44 UTC+2, Stefan Hornburg (Racke) a écrit : > > On 8/21/19 2:14 PM, Karther wrote: > > Hey all !! > > > > Ok thanks very much community ansible for your help !! :)

[ansible-project] get indice in csv file

2019-08-21 Thread Karther
ble play playbook with this both values. (there is probabily other values in this file ...) Help me please community ansible Regards, Karther -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and sto

[ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Karther
Hey all !! Ok thanks very much community ansible for your help !! :) It's very pity that ansible not can play the same playbook on the same host with different user ... Thanks very much for your help !! :) Regards, Karther Le mardi 20 août 2019 17:00:33 UTC+2, Karther a écrit : &g

[ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Karther
help community ansible !! :) Regards, Le mercredi 21 août 2019 10:44:47 UTC+2, Mark Anthony Garcia a écrit : > > For me I use the local users from the ansible controllers by calling the > "{{ lookup('env','USER') }}". > > On Tuesday, August 20, 2019

[ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Karther
Hey, I thinks you have not understand. I have *my inventory host* with this content : my_host_1 ansible_user=wildfly my_host_1 ansible_user=toto When i play my playbook, ansible run playbook only on the first line *my_host_1 ansible_user=wildfly* and not on the second line. So, same whe

[ansible-project] Re: Some user of ansible_user

2019-08-20 Thread Karther
hey, Help please Community Ansible ;) Regards, Le mardi 20 août 2019 17:00:33 UTC+2, Karther a écrit : > > Hey, > > I want to know if possible use a lot of user for ansible. > > Exemple, if i use *ansible_user=user1, user2* > > because i want to use *serial: 1* >

[ansible-project] Some user of ansible_user

2019-08-20 Thread Karther
Hey, I want to know if possible use a lot of user for ansible. Exemple, if i use *ansible_user=user1, user2* because i want to use *serial: 1* And i want that ansible use firt user1 and secondaly user2 If possible or not please ?? Regards, -- You received this message because you are subsc

Re: [ansible-project] Problem with get indice in file

2019-08-20 Thread Karther
Hey, Help me please !!! :) If i change this task with lookup, i will be to change my whole program !!! ;( Regards, Le mardi 20 août 2019 15:49:47 UTC+2, Karther a écrit : > > Hey, > > This module not work !! :/ > > I have error synthax i don't understand why !! :/ >

Re: [ansible-project] Problem with get indice in file

2019-08-20 Thread Karther
ger/clef_applicatives.csv when: item.split(',')[2] == inventory_hostname delegate_to: localhost Thanks you very much Community Ansible !!! :) Regards, Le mardi 20 août 2019 15:29:55 UTC+2, Dick Visser a écrit : > > Hi > > > > On Tue, 20 Aug 2019 at 14:39, K

[ansible-project] Re: Problem with get indice in file

2019-08-20 Thread Karther
Hey, Update. The problem is that when i use number with same caractere exemple "11, 22, 33, 44, 55 , etc ..." This task get only the first caracter "1 or 2 or 3 or 4 , etc..." Thanks, Regards, Le mardi 20 août 2019 14:39:45 UTC+2, Karther a écrit : > > Hey ! > >

[ansible-project] Problem with get indice in file

2019-08-20 Thread Karther
Hey ! I have strange problem : I have on file "clef_applicatives.csv" with this content : 2,user1,host1,clef1 7,user3,host2,clef5 6,user4,host4,clef6 42,user5,host5,clef7 23,user6,host8,clef8 3,user7,host3,clef9 22,user8,host10,clef14 20,user9,host7,clef11 I have on task who get indice dependin

[ansible-project] Re: reading a log file with hostname in the playbook processed

2019-08-09 Thread Karther
Hey, The variables in ansible write with this synthaxe : Exemple : {{ inventory_hostname }} {{ my_variable }} If you write (hostname -s), ansible not understand this synthaxe :/ I hope I helped you Regards, Karther Le jeudi 8 août 2019 22:13:48 UTC+2, Veera a écrit : > > > I am

[ansible-project] Re: Server application Widlfly in Ansible

2019-08-07 Thread Karther
Hey !! Up Please can you help me please !!! ;) Regards, Karther Le mardi 6 août 2019 10:29:02 UTC+2, Karther a écrit : > > Hey, > > I have on problem, i deploy application on server wildfly. > > I want to know if possible to find link url of my application who is >

[ansible-project] Server application Widlfly in Ansible

2019-08-06 Thread Karther
Hey, I have on problem, i deploy application on server wildfly. I want to know if possible to find link url of my application who is deploy on this server. I think that it's this modele but not works : http://{{ inventory_hostname }} with inventory_hostname = my name server application wildfl

[ansible-project] Re: Problems loading the playbook

2019-08-02 Thread Karther
Hey Ronny, If you want to connect on host remote windows, i think that there is some prerequisites same winrm or another parameter... Look at @internet if you want connect ansible at host windows Regards, Le jeudi 1 août 2019 23:44:59 UTC+2, ronny saavedra a écrit : > > > Good night to run thi

Re: [ansible-project] How compare two file in ansible

2019-08-02 Thread Karther
hey M.Kasurde, I see this module "stat", it's very awesome !!! ;) It's working perfectly, you are very best M.Kasurde !!! ^^ I hope that you will work in Microsoft and you are DSI or CIO why not ?!! haha :) Thank you very much !!! ;) Regards, Karther Le vendredi 2 août

[ansible-project] How compare two file in ansible

2019-08-02 Thread Karther
/file_1 I think that this tasks not works because myfile content "\n" at each line break Someone have any idea please for my problem ?!!! Thank you very much community ansible :) Regards, Karther -- You received this message because you are subscribed to the Google Groups &quo

Re: [ansible-project] Re: Problem with wildfly with Ansible

2019-07-31 Thread Karther
Hey, Thank you Михаил Политаев !! :) The packet in linux who do check xml file is *apt-get install libxml2-utils* for people who are interested ;) And the command line is *xmllint --format my_file.xml* Thanks, Regards, Karther Le mercredi 31 juillet 2019 14:41:55 UTC+2, Михаил Политаев a

Re: [ansible-project] Re: Problem with wildfly with Ansible

2019-07-31 Thread Karther
on a specific to application place. Ansible is not. As any >> other, not related to wildfly10, community probably will not help you. Look >> in a right place. >> >> ср, 31 июл. 2019 г. в 10:32, Karther >: >> >>> Hey, >>> >>> Ok because i d

[ansible-project] Re: Problem with wildfly with Ansible

2019-07-31 Thread Karther
Hey, Ok because i don't want submit compte on 500 plateforme different, i think that one person have any idea. Thanks for your help, Regards, Le mercredi 31 juillet 2019 10:29:17 UTC+2, Михаил Политаев a écrit : > > Hey Karther! > > If you service *wildfly10 *not working

[ansible-project] Problem with wildfly with Ansible

2019-07-31 Thread Karther
I am very furious because my deploiement application not work because i have problem with wildfly >< I have found in the internet without answer :( Thanks for your help community Ansible ! :) Help meee please !!! Regards, Karther -- You received this message because you are s

[ansible-project] Module synchronize in Ansible

2019-07-29 Thread Karther
Hey guy !! I have on problem, i want synchronize two repertory who are in destination host (source and destination), my task is : - name: "Copie de la partie front-office" synchronize: src: /var/apps/hospitalis-frontoffice/{{ version }}/fo/hospitalisV3Front-{{ version }}-RELEASE/hospita

Re: [ansible-project] Problem change user with become or become_user

2019-07-25 Thread Karther
Hey, Thanks very much community Ansible !! The solution is to use *remote_user: root* for that ansible execut this task in root !!! thank you very much guy !!! :) Regards, Karther Le jeudi 25 juillet 2019 16:09:23 UTC+2, p.co...@bham.ac.uk a écrit : > > If your system allows you

[ansible-project] Problem change user with become or become_user

2019-07-25 Thread Karther
ask just before : - set_fact: ansible_user: root My directory is create with success !! WHY ? Someone have any idea please community ansible ?? I'm desperte :( Thank you very much !! Regards, Karther -- You received this message because you are subscribed to the Google Groups "A

Re: [ansible-project] line break with lookup

2019-06-28 Thread Karther
oking for this . ? > > set_fact: > variable1: "{{lookup('file', 'my_file') if '\n' in lookup('file', > 'my_file') else lookup('file', 'my_file') + '\n'}}" > > On Fri, 28 Jun 2019

[ansible-project] line break with lookup

2019-06-28 Thread Karther
Hy all, I have one file my_file with this content : myfirstparaphrase I have this task : - set_fact: variable1: "{{ lookup('file', '/home/ansible/my_file') | replace(' ', '\n') }}" I want that in the end of my phrase, there is line breack but this task not works ... Someone have idea plea