summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/binary_modules/roles/test_binary_modules/tasks/main.yml
blob: 35a58dcb7f526cab0690436544ab5eca91575fc8 (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
- debug: var=ansible_system

- name: ping
  ping:
  when: ansible_system != 'Win32NT'

- name: win_ping
  action: win_ping
  when: ansible_system == 'Win32NT'

- name: Hello, World!
  action: "{{ filename }}"
  register: hello_world

- assert:
    that:
      - 'hello_world.msg == "Hello, World!"'

- name: Hello, Ansible!
  action: "{{ filename }}"
  args:
    name: Ansible
  register: hello_ansible

- assert:
    that:
      - 'hello_ansible.msg == "Hello, Ansible!"'

- name: Async Hello, World!
  action: "{{ filename }}"
  async: 10
  poll: 1
  when: ansible_system != 'Win32NT'
  register: async_hello_world

- assert:
    that:
      - 'async_hello_world.msg == "Hello, World!"'
  when: async_hello_world is not skipped

- name: Async Hello, Ansible!
  action: "{{ filename }}"
  args:
    name: Ansible
  async: 10
  poll: 1
  when: ansible_system != 'Win32NT'
  register: async_hello_ansible

- assert:
    that:
      - 'async_hello_ansible.msg == "Hello, Ansible!"'
  when: async_hello_ansible is not skipped