Commit 6bbbca7
committed
fix: use stat.pw_name, stat.gr_name instead of owner, group
Cause: The fields `stat.owner` and `stat.group` do not exist.
Consequence: The crypttab was always being set to owner/group root.
Fix: Use the correct fields `stat.pw_name` and `stat.gr_name`.
Result: Owner and group of crypttab are preserved.
See https://docs.ansible.com/ansible/2.9/modules/stat_module.html#return-stat/gr_name
Signed-off-by: Rich Megginson <rmeggins@redhat.com>1 parent 12915cb commit 6bbbca7
File tree
3 files changed
+32
-2
lines changed- tasks
- tests
3 files changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
| 198 | + | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments