Forum Discussion

PG0581's avatar
PG0581
Icon for Cirrus rankCirrus
Nov 20, 2018

[Ansible] Restore BigIP configuration in JSON format

If I run the below task in a playbook to backup an LTM's configuration and have the output stored in a file (being in JSON format), am I easily able to take this and upload back onto the LTM? If so, how would I go about doing this?

  - name: Backup LTM Configuration
    bigip_command:
      server: "{{ inventory_hostname }}"
      user: "{{ remote_username }}"
      password: "{{ remote_passwd }}"
      commands:
        - "run util bash -c 'cat /config/bigip.conf'"
      validate_certs: no
No RepliesBe the first to reply