文件操作 - example_playbook.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible_collections/cisco/ucs/playbooks/example_playbook.yml
编辑文件内容
--- # Example Playbook: VLAN configuration using the [ucs] hosts group - hosts: ucs connection: local collections: - cisco.ucs gather_facts: false tasks: - name: Configure VLAN ucs_vlans: hostname: "{{ inventory_hostname }}" username: "{{ username | default(omit) }}" password: "{{ password }}" state: "{{ state | default(omit) }}" name: vlan2 id: '2' native: 'no' delegate_to: localhost
修改文件时间
将文件时间修改为当前时间的前一年
删除文件