Skip to content
Snippets Groups Projects
Commit 166cf4d2 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Fix inverted condition

parent d6ddb634
No related branches found
No related tags found
No related merge requests found
......@@ -135,12 +135,12 @@
- name: Retrieve subuid for dockremap
command: grep dockremap /etc/subuid
register: dockremap_subuid_output
when: not docker_userns_remap
when: docker_userns_remap
- name: Retrieve subgid for dockremap
command: grep dockremap /etc/subgid
register: dockremap_subgid_output
when: not docker_userns_remap
when: docker_userns_remap
- name: Save uid to hostvars for dockremap user
lineinfile:
......@@ -152,7 +152,7 @@
connection: local
become: false
delegate_to: localhost
when: not docker_userns_remap and dockremap_subuid_output.stdout is defined
when: docker_userns_remap and dockremap_subuid_output.stdout is defined
- name: Save gid to hostvars for dockremap user
lineinfile:
......@@ -164,4 +164,4 @@
connection: local
become: false
delegate_to: localhost
when: not docker_userns_remap and dockremap_subgid_output.stdout is defined
when: docker_userns_remap and dockremap_subgid_output.stdout is defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment