blob: 579231ff17eea68397a4d48130136639c8232619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: Gather all legacy facts
cisco.ios.ios_facts:
- name: Update modification and access time of given file
ansible.builtin.file:
path: /etc/some_file
state: file
modification_time: now
access_time: now
- name: Disable ufw service
ansible.builtin.service:
name: ufw
enabled: false
state: stopped
when: '"ufw" in services'
- name: Remove file (delete file)
ansible.builtin.file:
path: /etc/foo.txt
state: absent
|