Skip to content

Commit

Permalink
fix user and group fact
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethenn authored Oct 16, 2023
1 parent 57d8caf commit d06eec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible_facts.d/group.fact
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import json

file = open("/etc/group", "r+")
file = open("/etc/group", "r")

list_groups = {}
while True:
Expand Down
2 changes: 1 addition & 1 deletion ansible_facts.d/user.fact
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import json

file = open("/etc/passwd", "r+")
file = open("/etc/passwd", "r")

user_list = {}
while True:
Expand Down

0 comments on commit d06eec8

Please sign in to comment.