From 782f8df6e41f29dce2db4970a3ad84aaeb7d8c5f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 22:04:50 +0200 Subject: Adding upstream version 4.3.7. Signed-off-by: Daniel Baumann --- test/roles/ansible-role-foo/tasks/main.yaml | 0 test/roles/invalid-name/tasks/main.yaml | 4 ++++ test/roles/invalid_due_to_meta/meta/main.yml | 8 ++++++++ test/roles/invalid_due_to_meta/tasks/main.yaml | 0 test/roles/test-role/molecule/default/include-import-role.yml | 6 ++++++ test/roles/test-role/tasks/main.yml | 2 ++ test/roles/valid-due-to-meta/meta/main.yml | 8 ++++++++ test/roles/valid-due-to-meta/tasks/debian/main.yml | 2 ++ test/roles/valid-due-to-meta/tasks/main.yaml | 0 9 files changed, 30 insertions(+) create mode 100644 test/roles/ansible-role-foo/tasks/main.yaml create mode 100644 test/roles/invalid-name/tasks/main.yaml create mode 100644 test/roles/invalid_due_to_meta/meta/main.yml create mode 100644 test/roles/invalid_due_to_meta/tasks/main.yaml create mode 100644 test/roles/test-role/molecule/default/include-import-role.yml create mode 100644 test/roles/test-role/tasks/main.yml create mode 100644 test/roles/valid-due-to-meta/meta/main.yml create mode 100644 test/roles/valid-due-to-meta/tasks/debian/main.yml create mode 100644 test/roles/valid-due-to-meta/tasks/main.yaml (limited to 'test/roles') diff --git a/test/roles/ansible-role-foo/tasks/main.yaml b/test/roles/ansible-role-foo/tasks/main.yaml new file mode 100644 index 0000000..e69de29 diff --git a/test/roles/invalid-name/tasks/main.yaml b/test/roles/invalid-name/tasks/main.yaml new file mode 100644 index 0000000..1270837 --- /dev/null +++ b/test/roles/invalid-name/tasks/main.yaml @@ -0,0 +1,4 @@ +--- +- name: foo + debug: + msg: foo diff --git a/test/roles/invalid_due_to_meta/meta/main.yml b/test/roles/invalid_due_to_meta/meta/main.yml new file mode 100644 index 0000000..0d4b0b2 --- /dev/null +++ b/test/roles/invalid_due_to_meta/meta/main.yml @@ -0,0 +1,8 @@ +galaxy_info: + role_name: invalid-due-to-meta + author: foo + description: foo + license: MIT + platforms: + - name: foo + min_ansible_version: 2.7 diff --git a/test/roles/invalid_due_to_meta/tasks/main.yaml b/test/roles/invalid_due_to_meta/tasks/main.yaml new file mode 100644 index 0000000..e69de29 diff --git a/test/roles/test-role/molecule/default/include-import-role.yml b/test/roles/test-role/molecule/default/include-import-role.yml new file mode 100644 index 0000000..0e1d166 --- /dev/null +++ b/test/roles/test-role/molecule/default/include-import-role.yml @@ -0,0 +1,6 @@ +--- +- name: test + gather_facts: no + hosts: all + roles: + - role: test-role diff --git a/test/roles/test-role/tasks/main.yml b/test/roles/test-role/tasks/main.yml new file mode 100644 index 0000000..53b968b --- /dev/null +++ b/test/roles/test-role/tasks/main.yml @@ -0,0 +1,2 @@ +- name: shell instead of command + shell: echo hello world diff --git a/test/roles/valid-due-to-meta/meta/main.yml b/test/roles/valid-due-to-meta/meta/main.yml new file mode 100644 index 0000000..8b8566b --- /dev/null +++ b/test/roles/valid-due-to-meta/meta/main.yml @@ -0,0 +1,8 @@ +galaxy_info: + role_name: valid_due_to_meta + author: foo + description: foo + license: MIT + platforms: + - name: foo + min_ansible_version: 2.7 diff --git a/test/roles/valid-due-to-meta/tasks/debian/main.yml b/test/roles/valid-due-to-meta/tasks/debian/main.yml new file mode 100644 index 0000000..6fa48c2 --- /dev/null +++ b/test/roles/valid-due-to-meta/tasks/debian/main.yml @@ -0,0 +1,2 @@ +# This empty task file is here to test that roles with tasks organized in subdirectories +# are handled correctly by ansible-lint. diff --git a/test/roles/valid-due-to-meta/tasks/main.yaml b/test/roles/valid-due-to-meta/tasks/main.yaml new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3