diff --git a/resources/ansible_local/actions/run.yaml b/resources/ansible_local/actions/run.yaml index ce81d26..7351a73 100644 --- a/resources/ansible_local/actions/run.yaml +++ b/resources/ansible_local/actions/run.yaml @@ -1,4 +1,9 @@ -- hosts: '*' +- hosts: localhost sudo: yes + vars: + var1: 'playbook' roles: - - { role: "test_role" } \ No newline at end of file + - { role: "test_role" } + tasks: + - debug: msg="VAR1 value is {{var1}}" + - fail: msg='just test failure' \ No newline at end of file diff --git a/resources/ansible_local/meta.yaml b/resources/ansible_local/meta.yaml index 77a47f1..cddbb39 100644 --- a/resources/ansible_local/meta.yaml +++ b/resources/ansible_local/meta.yaml @@ -4,7 +4,7 @@ version: 0.0.1 input: var1: type: str! - value: some_value + value: meta uuid: type: str! value: 'aa1das1231' diff --git a/resources/ansible_remote/actions/run.yaml b/resources/ansible_remote/actions/run.yaml index 5206f49..7482f7f 100644 --- a/resources/ansible_remote/actions/run.yaml +++ b/resources/ansible_remote/actions/run.yaml @@ -1,4 +1,6 @@ - hosts: '*' sudo: yes + vars: + default1: playbook tasks: - - debug: "my message" \ No newline at end of file + - debug: msg="my message {{default1}}" \ No newline at end of file diff --git a/resources/ansible_remote/meta.yaml b/resources/ansible_remote/meta.yaml index 626215f..9002622 100644 --- a/resources/ansible_remote/meta.yaml +++ b/resources/ansible_remote/meta.yaml @@ -11,3 +11,6 @@ input: ssh_key: type: str! value: + default1: + type: str! + value: meta