文件操作 - import_image_file.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible_collections/cisco/dnac/playbooks/import_image_file.yml
编辑文件内容
--- - hosts: dnac_servers vars_files: - credentials.yml gather_facts: false tasks: - name: Import image file cisco.dnac.swim_import_local: dnac_host: "{{ dnac_host }}" dnac_username: "{{ dnac_username }}" dnac_password: "{{ dnac_password }}" dnac_verify: "{{ dnac_verify }}" filePath: fullpath/playbooks/files/test.template # string isThirdParty: true # boolean thirdPartyApplicationType: SomeValue # string thirdPartyImageFamily: SomeValue # string thirdPartyVendor: SomeValue # string register: result - name: Show result ansible.builtin.debug: msg: "{{ result }}"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件