summaryrefslogtreecommitdiff
path: root/playbooks/zuul-stream/fixtures/test-stream.yaml
blob: 413fdee60af54653ce5b91256248efdf5b1d800e (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
- name: Run some commands to show that logging works
  hosts: node
  tasks:

    - name: Run setup
      setup:
      register: setupvar

    - name: Output ansible version
      debug:
        var: ansible_version

    - name: Output debug for a var
      debug:
        var: setupvar

    - name: Output a debug sentence
      debug:
        msg: This is a debug message

    - name: Run a shell task
      command: ip addr show

    - name: Loop with items
      command: "echo {{ item }}"
      with_items:
        - item1
        - item2
        - item3

    - name: Loop with complex items
      command: "echo {{ item.name }}"
      with_items:
        - name: complex1
        - name: complex2
        - name: complex3

    - name: Run a shell task with an ansible python exception
      command: echo foo
      args:
        chdir: /shelltask/somewhere/that/does/not/exist
      failed_when: false

    - name: Loop with items on an ansible python exception
      command: "echo {{ item }}"
      with_items:
        - item1
        - item2
        - item3
      args:
        chdir: /itemloop/somewhere/that/does/not/exist
      failed_when: false

    - name: Print binary data
      command: echo -e '\x80abc'