diff --git a/test/integration/targets/copy/meta/main.yml b/test/integration/targets/copy/meta/main.yml index 07faa217762..06d4fd29de2 100644 --- a/test/integration/targets/copy/meta/main.yml +++ b/test/integration/targets/copy/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - prepare_tests + - setup_nobody diff --git a/test/integration/targets/file/meta/main.yml b/test/integration/targets/file/meta/main.yml index 07faa217762..06d4fd29de2 100644 --- a/test/integration/targets/file/meta/main.yml +++ b/test/integration/targets/file/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - prepare_tests + - setup_nobody diff --git a/test/integration/targets/setup_nobody/handlers/main.yml b/test/integration/targets/setup_nobody/handlers/main.yml new file mode 100644 index 00000000000..2d02efbb035 --- /dev/null +++ b/test/integration/targets/setup_nobody/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: remove nobody user + user: + name: nobody + state: absent diff --git a/test/integration/targets/setup_nobody/tasks/main.yml b/test/integration/targets/setup_nobody/tasks/main.yml new file mode 100644 index 00000000000..cc0e4fe87b3 --- /dev/null +++ b/test/integration/targets/setup_nobody/tasks/main.yml @@ -0,0 +1,7 @@ +--- +- name: create nobody user + user: + name: nobody + create_home: no + state: present + notify: remove nobody user diff --git a/test/integration/targets/template/meta/main.yml b/test/integration/targets/template/meta/main.yml index 07faa217762..06d4fd29de2 100644 --- a/test/integration/targets/template/meta/main.yml +++ b/test/integration/targets/template/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - prepare_tests + - setup_nobody