diff --git a/resources/ansible_sample/actions/run.yaml b/resources/ansible_sample/actions/run.yaml new file mode 100644 index 0000000..fd3e8de --- /dev/null +++ b/resources/ansible_sample/actions/run.yaml @@ -0,0 +1,4 @@ +- hosts: localhost + sudo: yes + roles: + - { role: "test_role" } \ No newline at end of file diff --git a/resources/ansible_sample/actions/test_role/defaults/main.yml b/resources/ansible_sample/actions/test_role/defaults/main.yml new file mode 100644 index 0000000..1467149 --- /dev/null +++ b/resources/ansible_sample/actions/test_role/defaults/main.yml @@ -0,0 +1,4 @@ + +var1: initial +uuid: stuff +def1: the_same \ No newline at end of file diff --git a/resources/ansible_sample/actions/test_role/tasks/main.yml b/resources/ansible_sample/actions/test_role/tasks/main.yml new file mode 100644 index 0000000..1c628a0 --- /dev/null +++ b/resources/ansible_sample/actions/test_role/tasks/main.yml @@ -0,0 +1 @@ +- debug: msg="Variable1 {{ var1 }} with uuid {{ uuid }} and default var {{ def1 }}" \ No newline at end of file diff --git a/resources/ansible_sample/meta.yaml b/resources/ansible_sample/meta.yaml new file mode 100644 index 0000000..fba6f9c --- /dev/null +++ b/resources/ansible_sample/meta.yaml @@ -0,0 +1,11 @@ +id: ansible_sample +handler: local_ansible +version: 0.0.1 +input: + var1: + type: str! + value: some_value + uuid: + type: str! + value: 'aa1das1231' +