Re: [ansible-project] Get_url

2024-04-10 Thread Prady A
Yes you are right. The ssl certificate was pretty old and I ve no idea how to update it also. So I skipped Ssl verification and it worked get_url: dest: /tmp url: https:// username: <> password: <> * validate_certs: no* Thank you again both of you. Regards PD On Wed, 10 Apr 2024 at

Re: [ansible-project] Get_url

2024-04-10 Thread Prady A
Thank you I see. I ll check the script. Can we call the execute the get_url without ssl certificate ? This is ansible verbose report. Seems the SSL is too old. Failed to connect to the host via ssh: OpenSSH_7.4p1, *OpenSSL > 1.0.2k-fips 26 Jan 2017* > debug1: Reading configuration data

Re: [ansible-project] Get_url

2024-04-10 Thread Stefan Hornburg (Racke)
On 10/04/2024 09:55, Prady A wrote: Thanks dick Yes by default those commands doesn’t comes oob. Tried with verbosity mode. Request failed:” It is possible that the SSL setup on the target is too old. You could check that with the "testssl" script from the controller (https://testssl.sh/).

Re: [ansible-project] Get_url

2024-04-10 Thread Prady A
Thanks dick Yes by default those commands doesn’t comes oob. Tried with verbosity mode. Request failed:” Regards On Wed, 10 Apr 2024 at 16:15, Dick Visser wrote: > Too bad, that would have helped to indicate SSL issues on that remote host. > Try running with more verbosity (-vvv) and see

Re: [ansible-project] Get_url

2024-04-10 Thread Dick Visser
Too bad, that would have helped to indicate SSL issues on that remote host. Try running with more verbosity (-vvv) and see what that returns. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Get_url

2024-04-10 Thread Prady A
Thanks but both curl and wget command not found.. Regards On Wed, 10 Apr 2024 at 15:12, Dick Visser wrote: > Are you able to use curl on that remote host with the same URL and > credentials? > > Sent from Gmail Mobile > > > On Wed, 10 Apr 2024 at 07:36, Prady A wrote: > >> Hi experts >> >> I

Re: [ansible-project] Get_url

2024-04-10 Thread Dick Visser
Are you able to use curl on that remote host with the same URL and credentials? Sent from Gmail Mobile On Wed, 10 Apr 2024 at 07:36, Prady A wrote: > Hi experts > > I ve been trying get_url in Aix server but no luck yet.. > > > In Linux the below ansible code is working > > get_url: >

[ansible-project] Get_url

2024-04-09 Thread Prady A
Hi experts I ve been trying get_url in Aix server but no luck yet.. In Linux the below ansible code is working get_url: dest: /tmp url: https:// username: <> password: <> But in AIX machine it is giving below error. .. Request failed: Any pointer or advice pls.. Regards Prady

Re: [ansible-project] get_url ... donlwoading html, nt raw content

2023-06-05 Thread Dick Visser
On Mon, 5 Jun 2023 at 12:26, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote: > I want to download a .j2 file from a local bitbucket repository to a local > folder. > == > > - name: download artifacts - fetch

[ansible-project] get_url ... donlwoading html, nt raw content

2023-06-05 Thread dulhaver via Ansible Project
I want to download a .j2 file from a local bitbucket repository to a local folder. == - name: download artifacts - fetch template from repo delegate_to: localhost ansible.builtin.get_url: url:

Re: [ansible-project] get_url throws No space left error

2017-09-07 Thread rambius
четвъртък, 7 септември 2017 г., 12:14:44 UTC-4, Jean-Yves LENHOF написа: > > > Hi, > > RTFM http://docs.ansible.com/ansible/latest/get_url_module.html > > tmp_dest is what you are looking for > Thank you! tmp_dest fixed the problem.. Regards Ivan -- You received this message because you

Re: [ansible-project] get_url throws No space left error

2017-09-07 Thread Jean-Yves LENHOF
Le 07/09/2017 à 17:39, rambius a écrit : > Hello, > > I have the following playbook: > > --- > - name: Setup Upsource > hosts: upsource > tasks: > - name: fetch upsource > local_action: get_url url="{{ upsource_url }}" dest="{{ > installers_dir }}/{{ upsource_bundle }}"

[ansible-project] get_url throws No space left error

2017-09-07 Thread rambius
Hello, I have the following playbook: --- - name: Setup Upsource hosts: upsource tasks: - name: fetch upsource local_action: get_url url="{{ upsource_url }}" dest="{{ installers_dir }}/{{ upsource_bundle }}" validate_certs="no" - name: create upsource directory file: path="{{

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-07 Thread Dick Visser
On 7 July 2017 at 21:27, Anfield wrote: > Hi Joe. Yes the file does exist on 10.10.0.5...I thought get-url would > download from the target (10.10.0.5) to the local ansible server (My master > I am runing the playbook from) > > Unless I am misunderstanding how this should

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-07 Thread Anfield
Hi Joe. Yes the file does exist on 10.10.0.5...I thought get-url would download from the target (10.10.0.5) to the local ansible server (My master I am runing the playbook from) Unless I am misunderstanding how this should work.? >> -- You received this message because you are subscribed to

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-04 Thread 'J Hawkesworth' via Ansible Project
The output above seems to be saying that the file /home/ansible/index.html is present on 10.10.0.5. If you are expecting the file to be re-downloaded each time the playbook runs, then set 'force: yes' in your playbook, otherwise it will not attempt to fetch the file again. Jon On Monday,

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-03 Thread Anfield
Their both vms on my laptop so none is really "remote" - but in this case the local is the one running the playbook.. > > -- 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] get_url runs but doesnt download the file

2017-07-03 Thread Anfield
Hi. What I am expecting is just for the file to be downloaded from the remote host to the local (again both vms') The output tells me that it has run (and flagged as changed) - but when I look into the local target dir - the file is never there..am I missing something? -- You received this

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-03 Thread Dick Davies
Explain what you're expecting, because this indicates the file is already downloaded and the checksum matches. I might be reading it wrong, or have the wrong end of the stick...? On 3 July 2017 at 17:31, Anfield wrote: > ok: [10.10.0.5] => { > "changed": false, >

Re: [ansible-project] get_url runs but doesnt download the file

2017-07-03 Thread Dick Visser
What comes to mind: * debug with - * run tcpdump on the initiating host to see if packets get out Dick On 3 July 2017 at 18:05, Anfield wrote: > I have 2 vms both running centos and ansible, running a get_url test and the > playbook runs fine and says changed = 1

[ansible-project] get_url runs but doesnt download the file

2017-07-03 Thread Anfield
I have 2 vms both running centos and ansible, running a get_url test and the playbook runs fine and says changed = 1 but the file never gets downloaded to the target I have apache running on the server that hosts the file (root owns the remote dir - /var/www/html Any ideas? Thanks. ansible v

[ansible-project] get_url unable to download from ftp link

2017-02-09 Thread Abhijit Chakraborty
Hello experts, I have been unable to download a file via ftp using get_url.This is the contents of my yml file --- - hosts: all tasks: - name: FTP download get_url: url=ftp://ftp:ftp@site/pub/PRODUCTS/MYPRODUCTS/MR/MR/product.tarr dest=/Agent/agent.tar

[ansible-project] get_url unable to download from ftp site

2017-02-09 Thread Abhijit Chakraborty
I am unable to download a file from ftp site. my yml file is as below --- - hosts: all tasks: - name: FTP download get_url: url=ftp://ftp:f...@site.com/pub/PRODUCTS/MR/12.22_MR/product.tar dest=/Agent/agent.tar use_proxy=no validate_certs=no My /etc/ansible/hosts file contains a

[ansible-project] get_url, "unsupported parameter for module: checksum"

2017-01-23 Thread Adam Williams
Hello, I've got a Vagrant Ubuntu 14.04 machine provisioned with: sudo apt-get install -y software-properties-common sudo apt-add-repository ppa:ansible/ansible sudo apt-get update sudo apt-get install -y ansible This gives me: vagrant@ubuntu:~$ ansible --version ansible 2.2.1.0

[ansible-project] get_url and regex_replace

2016-10-10 Thread cpb3ll
Hi All I'm trying to use the get_url module to download and rename at the same time. It does not work. Should it? - name: Download get_url: url: "{{ cfssl.download_url }}/{{ item }}" dest: "{{ cfssl.install_dir }}/{{ item | regex_replace('^(.*)\_(.*)$', '\\1') }}" mode: 0755

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

Re: [ansible-project] get_url module failed when we download file from ftp with username and password

2016-06-01 Thread Johannes Kastl
On 01.06.16 11:25 pawan kumar wrote: > // when i run my yml file than it gives above like error how to fix the ftp > to download files. As crystal balls are pretty hard to read, could you provide your yml file (redacted, of course)? Johannes -- You received this message because you are

[ansible-project] get_url module failed when we download file from ftp with username and password

2016-06-01 Thread pawan kumar
fatal: [192.168.0.111]: FAILED! => {"changed": false, "dest": "/root/", "failed": true, "gid": 0, "group": "root", "mode": "0755", "msg": "Request failed", "owner": "root", "response": "OK (unknown bytes)", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 4096, "state":

[ansible-project] get_url is not a valid attribute for play

2016-04-18 Thread darknight
Hi, I am totally confused about why i cannot use the get_url attribute in a play i was writing. I get the above error when i try to run the play-book. I am not sure why this is happening and i am totally lost of whats wrong here. can any one let me know whats going here.Thanks - name:

[ansible-project] get_url with alternative url

2016-02-14 Thread Mike Christofilopoulos
i got a local cache to store files to download from when im deploying for our production environment thats internal to that network and for that im using get_url to download stuff. But there are times when that local cache is not available and i need to download my stuff from other locations

Re: [ansible-project] get_url: accepting sha1 checksums

2015-07-20 Thread Toshio Kuratomi
There's no set reason. There is an open pull request to add support for additional hashes: https://github.com/ansible/ansible-modules-core/pull/141 I've reviewed it -- it needs some revisions and then could be merged. I don't have time before v2 to make the revisions myself but perhaps someone

[ansible-project] get_url: accepting sha1 checksums

2015-07-17 Thread Mike Christofilopoulos
Hi all, Is there any reasons why get_url does not accept sha1 checksums and only accept sha256sum ? The reason behind this is, that i tried seting up the ELK stack and they provide sha1 checksums on the site. So i found it a bit un-automatic having to download the file localy, verify, generate

Re: [ansible-project] get_url newbie question

2015-01-02 Thread Martin Palecek
If the file is already present, then the get_url_result.msg does not contain 'OK'. I had to use until: 'OK' in get_url_result.msg or 'file already exists' in get_url_result.msg On Thursday, 16 October 2014 15:35:34 UTC+2, Daniel Laird wrote: For the benefit of all this seemed to solve it:

[ansible-project] get_url and preemptive authentication?

2014-11-24 Thread Mirko Friedenhagen
Hello, we provide user specific settings for our Maven repository via a HTTP GET request[1], but have the usecase that anonymous has read-only access, so authentication is not strictly enforced. I try to setup our CI system with ansible coming from a shell based setup, where I have: curl

Re: [ansible-project] get_url and preemptive authentication?

2014-11-24 Thread Matt Martz
You might be interested in https://github.com/ansible/ansible-modules-core/pull/153 On Sunday, November 23, 2014, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, we provide user specific settings for our Maven repository via a HTTP GET request[1], but have the usecase that anonymous

Re: [ansible-project] get_url and preemptive authentication?

2014-11-24 Thread Mirko Friedenhagen
Hello Matt, thanks, any chances that this will make it into version 1.8? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Mon, Nov 24, 2014 at 2:30 PM, Matt Martz

Re: [ansible-project] get_url and preemptive authentication?

2014-11-24 Thread Michael DeHaan
1.8 is releasing soon so this is unlikely. It is prioritized p3 so it's next in line though. You can use your own version of get_url by dropping in ./library relative to your playbook, which would allow you to use this today. On Mon, Nov 24, 2014 at 4:21 PM, Mirko Friedenhagen

[ansible-project] get_url: Request failed: urlopen error (101, 'Network is unreachable')

2014-11-21 Thread diana h
Hi All, I tried to use get_url in playbook.yml to download Elasticsearch package = failed. But it is OK for me to use wget to download the package. What should I do to get get_url works in ansible playbook? My env: ansible v1.7.2, running on CentOS release 5.8 [vagrant@machine2]$

Re: [ansible-project] get_url support custom headers

2014-11-03 Thread Michael DeHaan
It seems to be me (longer-term) we'd benefit from having some modules explicitly for SoftLayer instead as opposed to going through the uri module. get_url is basically there for easy downloads of web resources. I think we are open to the idea of having it take a new parameter (try to match up

Re: [ansible-project] get_url support custom headers

2014-11-03 Thread Andrew Craft
Agree would be nice for some kind of softlayer support but requires a bit more thought and structure for username/keys/authentication end points etc so figured this would be simpler in short term for my needs and still potentially useful for others Will take a look and see i can put a patch

Re: [ansible-project] get_url newbie question

2014-10-16 Thread Daniel Laird
For the benefit of all this seemed to solve it: get_url: url=pkg_name.tar.bz2 dest=/opt/DIR_NAME force=yes url_password={{ svn_password }} url_username={{ svn_username }} use_proxy=no register: get_url_result until: 'OK' in get_url_result.msg retries: 5 delay: 10 with_items: pkg_list

Re: [ansible-project] get_url newbie question

2014-09-23 Thread Michael DeHaan
A good way to check a return value is: - debug: var=registered_variable_name In this case, you should get an arrayed result. Let us know what specific problems you are having as I have trouble parsing what doesn't work means usually :) Thanks! On Mon, Sep 22, 2014 at 11:08 AM, Daniel Laird

[ansible-project] get_url newbie question

2014-09-22 Thread Daniel Laird
All, New to ansible and struggling a bit. I want to use get_url on a list of files. But also due to issues with the server I am downloading from I want to retry the download on failure. I have something like this: - name: Download the packages get_url: url=pkg_name.tar.bz2

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-10 Thread William Jimenez
After more thought on this and further discussion, it seems that MD5 is the right way to do this. The use case that I am designing for however requires the repo manager aritfactory because it looks for the md5 sums that it generates for each artifact (other similar tools likely have the same

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-08 Thread William Jimenez
Those are good points. I guess the challenge is how much time are you willing to spend when running playbooks to compute sha/md5's of files on disk? If we are OK spending that time, then we could just as easily have the conditionals do that. I was looking at the file module to see what

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-08 Thread Chad Scott
I hit the wrong reply option previously. Sorry for the duplicate in private, Brian. I see this pretty rarely. It's normally the length of the file in bytes. I think we're overthinking this. I had originally suggested to William that comparing the timestamps and length would be a super

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-08 Thread Michael DeHaan
Brian, Are you sure that's true of os.stat() and not just the shell commands? Seems like it would not be. I think I'm ok with adding a bytes= parameter if we can get around this question. On Wed, Jan 8, 2014 at 2:59 PM, Chad Scott csc...@appdynamics.com wrote: I hit the wrong reply option

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-08 Thread Brian Coca
I've been burned by this before, stat is supposed to return the size of the file in bytes. I haven't really checked in a long time as I've grown accustomed to not rely on size for file comparisons, but my issues stemmed from some tools/implementations using # of blocks * block_size to measure the

[ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-07 Thread William Jimenez
Hi Guys I submitted a pull request today but wanted to provide some background on the use case. I ran into some situations where it was desirable to be able to update an artifact in a content repository (say artifactory) and then re-run ansible as is and have that updated artifact be pulled

Re: [ansible-project] get_url suppot for comparing remote file size against local file size

2014-01-07 Thread William Jimenez
The latter, if we have to SHA/MD5 a 500M+ file every time we run ansbile the thought was that would be too slow. On Tue, Jan 7, 2014 at 2:48 PM, Michael DeHaan mich...@ansibleworks.comwrote: Was the time of doing something SHA related actually being a problem, or more a problem of needing to