summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-risky-octal-fail.yml
blob: 9e4a3bf3b1c4a4e4f8b9de69d03bbe77fcd67fda (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: Fixture for testing risky-octal rule
  hosts: hosts
  vars:
    varset: varset
  tasks:
    - name: Octal permissions test fail (600)
      ansible.builtin.file:
        path: foo
        mode: 600

    - name: Octal permissions test fail (710)
      ansible.builtin.file:
        path: foo
        mode: 710

    - name: Octal permissions test fail (123)
      ansible.builtin.file:
        path: foo
        mode: 123

    - name: Octal permissions test fail (2000)
      ansible.builtin.file:
        path: bar
        mode: 2000