summaryrefslogtreecommitdiff
path: root/test/integration/targets/tower_inventory_source/tasks/main.yml
blob: 110a162270b02dd88648a00d924a17c5a602c610 (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
---
- name: Add a Tower credential
  tower_credential:
    description: Credentials for Openstack Test project
    name: openstack-test-credential
    kind: openstack
    organization: Default
    project: Test
    username: admin
    host: https://example.org:5000
    password: passw0rd
    domain: test

- name: Add a Tower inventory
  tower_inventory:
    description: Test inventory
    name: openstack-test-inventory
    organization: Default

- name: Create a source inventory
  tower_inventory_source:
    name: source-test-inventory
    description: Source for Test inventory
    inventory: openstack-test-inventory
    credential: openstack-test-credential
    overwrite: True
    update_on_launch: True
    source_vars: "---\nprivate: false"
    source: openstack
  register: result

- assert:
    that:
      - "result is changed"