[SKIP CI] fix namespace group removal

This commit is contained in:
Robert Kaussow 2019-08-04 13:36:33 +02:00
parent 70291fedf9
commit a6eba18e2d
1 changed files with 8 additions and 1 deletions

View File

@ -43,7 +43,8 @@
- name: Add namespace group
group:
name: "{{ dockerengine_nsremap_user }}"
state: "{{ 'present' if dockerengine_usernamespace_enabled | bool else 'absent' }}"
state: present
when: dockerengine_usernamespace_enabled | bool
- name: Add namespace user
user:
@ -52,6 +53,12 @@
shell: /sbin/nologin
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
lineinfile:
dest: "{{ item }}"