summaryrefslogtreecommitdiffstats
path: root/test/fixtures/formatting-prettier/fmt-5.yml
blob: b259e0e89570948b265b8f34b38b9c50b24c8a00 (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: Test this playbook
  hosts: all
  tasks:
    - 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