mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
test - add setup target that creates the nobody user (#52750)
* test - add setup target that creates the nobody user * do not set explicit gid/uid for nobody user * Do no create group and only touch basic attributes
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_nobody
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_nobody
|
||||
|
||||
5
test/integration/targets/setup_nobody/handlers/main.yml
Normal file
5
test/integration/targets/setup_nobody/handlers/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: remove nobody user
|
||||
user:
|
||||
name: nobody
|
||||
state: absent
|
||||
7
test/integration/targets/setup_nobody/tasks/main.yml
Normal file
7
test/integration/targets/setup_nobody/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: create nobody user
|
||||
user:
|
||||
name: nobody
|
||||
create_home: no
|
||||
state: present
|
||||
notify: remove nobody user
|
||||
@@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_nobody
|
||||
|
||||
Reference in New Issue
Block a user