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 14
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 /etc/ssh
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/).
R
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 w
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 em
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 v
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:
> dest:
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
--
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 temp
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:
"https://devtools/bitbucket
четвъртък, 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 are
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 }}" validate_certs="no
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="{{ ups
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 work.?
I think so - acco
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
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, July
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, send
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
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,
> "checksum_dest": "7ae4
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 but the file never gets d
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
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 use_prox
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 rem
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
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
w
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_
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 subsc
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":
"directory"
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: Downloa
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 (i.
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 els
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
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:
Thanks, good to know :-)
Regards
Mirko
--
Sent from my mobile
On Nov 24, 2014 11:28 PM, "Michael DeHaan" wrote:
> 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
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 wrote:
> Hel
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 wrote:
> You
You might be interested in
https://github.com/ansible/ansible-modules-core/pull/153
On Sunday, November 23, 2014, Mirko Friedenhagen
wrote:
> 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
> a
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 --net
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]$ ansible-pl
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 togeth
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 wit
>From what i can see get_url doesn't support specifying custom http headers
like the uri module.
What i am trying to do is download some files from the object storage in
Softlayer (based on SwiftStack)
1) Customised the softlayer inventory file to include username and apikey
as group_vars whe
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
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
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 dest=/opt/DIR_NAME
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
featur
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
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 wrote:
> I hit the wrong reply option previously. Sorry for
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 inexpensi
File sizes can be tricky, most systems report how much the file occupies,
which is normally larger than the exact bit count of the file itself (be it
fs blocks, packets or encoded base64/mime encapsulated/armored/etc).
--
You received this message because you are subscribed to the Google Groups
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
approach
Seems you would want to run it once and then put that value in the playbook.
If the SHA/MD5 was of a build product, maybe it could be generated by
Jenkins as an artifact?
Just playing Devil's advocate somewhat -- I suspect people *may* raise the
"but... but... file sizes aren't secure" complaint
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 wrote:
> Was the time of doing something SHA related actually being a problem, or
> more a problem of needing to calculate the SHA?
>
>
Was the time of doing something SHA related actually being a problem, or
more a problem of needing to calculate the SHA?
On Tue, Jan 7, 2014 at 5:33 PM, William Jimenez wrote:
> Hi Guys
> I submitted a pull request today but wanted to provide some background on
> the use case. I ran into some
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 down
55 matches
Mail list logo