summaryrefslogtreecommitdiff
path: root/test/integration/targets/includes/test_includes2.yml
blob: da6b914feeaddc145de199c89f853b54ebc4ab1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- name: verify playbook includes can take parameters
  hosts: testhost
  tasks:
    - assert:
        that:
          - "parameter1 == 'asdf'"
          - "parameter2 == 'jkl'"

- name: verify task include logic
  hosts: testhost
  gather_facts: True
  roles:
    - role: test_includes
      tags: test_includes
  tasks:
    - include_tasks: roles/test_includes/tasks/not_a_role_task.yml
    - include_tasks: roles/test_includes/tasks/empty.yml
    - assert:
        that:
          - "ca == 33000"
          - "cb == 33001"
          - "cc == 33002"