Skip to content

Commit 5beac6b

Browse files
StevenH1901cmeissner
authored andcommitted
New test to ensure app_id deafults to 'ansible'
test
1 parent 51d4cb0 commit 5beac6b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
- name: Check app_id defaults to 'ansible'
2+
hosts: localhost
3+
gather_facts: false
4+
vars_files:
5+
- vars/server.yml
6+
- vars/section.yml
7+
tasks:
8+
- name: Create section
9+
ansible.builtin.include_tasks: tasks/shared_vars_section.yml
10+
vars:
11+
step: create section
12+
section: '{{ base_section_data }}'
13+
- name: Delete section
14+
ansible.builtin.include_tasks: tasks/shared_vars_section.yml
15+
vars:
16+
step: delete section
17+
override:
18+
state: absent
19+
section: '{{ base_section_data | combine(override) }}'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
- name: "Ensure state of section: {{ step }}"
3+
codeaffen.phpipam.section:
4+
server_url: "{{ phpipam_server_url }}"
5+
username: "{{ phpipam_username }}"
6+
password: "{{ phpipam_password }}"
7+
name: "{{ section.name }}"
8+
description: "{{ section.description | default(omit) }}"
9+
parent: "{{ section.parent | default(omit) }}"
10+
permissions: "{{ section.permissions | default(omit) }}"
11+
strict_mode: "{{ section.strict_mode | default(omit) }}"
12+
subnet_ordering: "{{ section.subnet_ordering | default(omit) }}"
13+
list_order: "{{ section.list_order | default(omit) }}"
14+
show_vlan: "{{ section.show_vlan | default(omit) }}"
15+
show_vrf: "{{ section.show_vrf | default(omit) }}"
16+
show_supernets_only: "{{ section.show_supernets_only | default(omit) }}"
17+
dns_resolver: "{{ section.dns_resolver | default(omit) }}"
18+
validate_certs: "{{ section.validate_certs | default('no') }}"
19+
state: "{{ section.state | default('present') }}"

0 commit comments

Comments
 (0)