[SKIP CI] fix namespace group removal
This commit is contained in:
parent
70291fedf9
commit
a6eba18e2d
@ -43,7 +43,8 @@
|
|||||||
- name: Add namespace group
|
- name: Add namespace group
|
||||||
group:
|
group:
|
||||||
name: "{{ dockerengine_nsremap_user }}"
|
name: "{{ dockerengine_nsremap_user }}"
|
||||||
state: "{{ 'present' if dockerengine_usernamespace_enabled | bool else 'absent' }}"
|
state: present
|
||||||
|
when: dockerengine_usernamespace_enabled | bool
|
||||||
|
|
||||||
- name: Add namespace user
|
- name: Add namespace user
|
||||||
user:
|
user:
|
||||||
@ -52,6 +53,12 @@
|
|||||||
shell: /sbin/nologin
|
shell: /sbin/nologin
|
||||||
state: "{{ 'present' if dockerengine_usernamespace_enabled | bool else 'absent' }}"
|
state: "{{ 'present' if dockerengine_usernamespace_enabled | bool else 'absent' }}"
|
||||||
|
|
||||||
|
- name: Add namespace group
|
||||||
|
group:
|
||||||
|
name: "{{ dockerengine_nsremap_user }}"
|
||||||
|
state: absent
|
||||||
|
when: not dockerengine_usernamespace_enabled | bool
|
||||||
|
|
||||||
- name: Configure namespace id range
|
- name: Configure namespace id range
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ item }}"
|
dest: "{{ item }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user