Adding Netbox
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
roles:
|
||||
- to_lines
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: import dependency role for test
|
||||
import_role:
|
||||
name: "{{ role_path.split('/tests/to_lines/to_lines')[0] }}"
|
||||
|
||||
- name: to_lines test
|
||||
import_tasks: to_lines.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: convert string to lines
|
||||
set_fact:
|
||||
test: "{{ 'test\nstring' | to_lines }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- test[0] == 'test'
|
||||
- test[1] == 'string'
|
||||
Reference in New Issue
Block a user