From d06eec87da0a9a7137e6bbc85b5da240b37979e7 Mon Sep 17 00:00:00 2001 From: Aethenn <58144688+Aethenn@users.noreply.github.com> Date: Mon, 16 Oct 2023 23:40:45 +0200 Subject: [PATCH] fix user and group fact --- ansible_facts.d/group.fact | 2 +- ansible_facts.d/user.fact | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_facts.d/group.fact b/ansible_facts.d/group.fact index c23c40d848..93faa03c69 100755 --- a/ansible_facts.d/group.fact +++ b/ansible_facts.d/group.fact @@ -3,7 +3,7 @@ import json -file = open("/etc/group", "r+") +file = open("/etc/group", "r") list_groups = {} while True: diff --git a/ansible_facts.d/user.fact b/ansible_facts.d/user.fact index 2b47f25c7e..2102c8a11f 100755 --- a/ansible_facts.d/user.fact +++ b/ansible_facts.d/user.fact @@ -3,7 +3,7 @@ import json -file = open("/etc/passwd", "r+") +file = open("/etc/passwd", "r") user_list = {} while True: