文件操作 - site_intent.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible_collections/cisco/dnac/playbooks/site_intent.yml
编辑文件内容
- hosts: localhost connection: local gather_facts: no vars_files: - "credentials.yml" tasks: - name: Get site info and updating site details cisco.dnac.site_intent: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true state: merged config: - site: floor: name: Test_Floor2 parent_name: 'Global/USA/San Francisco/BGL_18' length: "101" width: "75" height: "50" rf_model: 'Cubes And Walled Offices' floor_number: 3 - site: area: name: Canada parent_name: 'Global' type: area
修改文件时间
将文件时间修改为当前时间的前一年
删除文件