Open grmenon opened 1 year ago
Hi @grmenon,
I tested the following example and one ucs was created on each device. In your playbook, there is a provider referenced. Could you check if the server is changed correctly for each device?
Inventory file:
F5:
hosts:
F501:
ansible_host: X.X.X.X
ucsname: F501.ucs
F502:
ansible_host: Y.Y.Y.Y
ucsname: F502.ucs
Playbook:
- hosts: F5
collections:
- f5networks.f5_modules
connection: local
tasks:
- name: Only create new UCS in Big-IP device, no download
f5networks.f5_modules.bigip_ucs_fetch:
provider:
server: {{ ansible_host }}
user: "admin"
password: "mysecretpassword"
server_port: 443
validate_certs: no
no_f5_teem: yes
src: {{ ucsname }}
only_create_file: yes
async_timeout: 1800
delegate_to: localhost
Thank you for the response. I am using "{{inventory_host}}" for the server property in my provider. I am surprised and "ansible_host" is working for you with delegation to localhost. For me "{{ansible_host}} fails (testing on Mac). When I limit the backup to just 2 devices (as you have in the example above), it seems to be working. I see the issue when I have more than 2. As an alternative (I know this is not ideal), serializing the execution seems to be doing the trick as well. It does a little longer, but it works. For people using ansible AAP, you can run smaller groups (with serialization) in parallel using worflows.
Hi @grmenon,
I tried with 3 devices and it works.
Thank you Patrick for testing this. I ran a couple of tests & from what I can tell, this is working fine if the target is a VE. It is failing for me if
For now, I am using a combination of tmsh & scp to take & download the backups for physical boxes.
COMPONENT NAME
f5networks.f5_modules.bigip_ucs_fetch
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
OS / ENVIRONMENT
I am getting errors when running the playbook on both Mac (my laptop) & Ansible Automation Platform (Ansible Automation Platform Controller 4.4.1)
SUMMARY
When executing the playbook on multiple hosts, all backups are stored on the 1st LTM in the list. That results in the space on the 1st LTM getting full resulting in errors.
STEPS TO REPRODUCE
Playbook shown below
EXPECTED RESULTS
Backup file should be created on each F5 rather than on the 1st F5.
ACTUAL RESULTS
Ansible output attached below.