summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-risky-shell-pipe-fail.yml
blob: d727bc46b1a59c4d7ea04917c882be2daae7e331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Test fixture for risky-shell-pipe
  hosts: localhost
  become: false
  tasks:
    - name: Pipeline without pipefail
      ansible.builtin.shell: false | cat
      changed_when: false

    - name: Pipeline with or and pipe, no pipefail
      ansible.builtin.shell: false || true | cat
      changed_when: false

    - name: Another one
      ansible.builtin.shell: |
        df | grep '/dev'
      changed_when: false