Downloading Patch Files via Ansible Script
search cancel

Downloading Patch Files via Ansible Script


Article ID: 235750


Updated On:


CA API Gateway


We tried to download the patch via an Ansible script like below:

L7P --user username@<user_domain> --ask-password" 

and then we get the error:

--2022-02-28 08:41:39--
      => ‘Layer7_API_PlatformUpdate_64bit_v10.X-CentOS-2022-01-26.L7P’
Resolving (
Connecting to (||:21... connected.
Logging in as [email protected] ... Logged in!
==> SYST ... done.  ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /21983200 ...
No such directory ‘21983200’

Is there a way to get a STABLE url (without a custom part) and a user with which to download the files in a deployment script?


Release : 10.0

Component : API GATEWAY


21983200 is an sample system generated unique 'user directory number' and will be changed for each user download.

so it is not possible to use a script to download the file as the directory number is dynamic and changes for each download