CiscoDevNet / ansible-dcnm

Apache License 2.0
47 stars 37 forks source link

dcnm_image_upload module #258

Closed dsx1123 closed 5 months ago

dsx1123 commented 1 year ago

Community Note

Description

New or Affected modules(s):

DCNM version

Potential ansible task config

# Copy-paste your ansible playbook
    - name: Upload Images
      cisco.dcnm.dcnm_image_upload:
      state: merged                             # choose from merged, deleted, overriden, and query
      files:
        - path: /nxos/nxos64-cs.10.3.2.F.bin    # mandatory, this path can be local file path or paht of remote server
          source: scp                           # choose from local, scp, and sftp, default is local we might support other protocols in the future
          remote_server: file-server.cisco.com  # optional, only used when the source is scp
          username: shdu                        # optional, only used when the source is scp
          password: password                    # optional, only used when the source is scp
        - path: /local_folder/n3100-compact.7.0.3.I7.10.bin
          source: local

This module should only support 12.1.3 onwards.

References

https://www.cisco.com/c/en/us/td/docs/dcn/ndfc/1212/configuration/fabric-controller/cisco-ndfc-fabric-controller-configuration-guide-1212/image-management.html Additional context Add any other context or screenshots about the feature request here.