Oleksandr Lytvyn
09/30/2026, 3:13 PMOleksandr Lytvyn
09/30/2026, 3:14 PMJason St-Cyr
09/30/2026, 3:35 PMumask 027 it finds the 027 when running the second file_line and thinks the work is already done.
Have you tried running one file_line with multiple matches?Oleksandr Lytvyn
09/30/2026, 7:13 PMJason St-Cyr
10/01/2026, 12:06 PM['/etc/profile', '/etc/bashrc'].each |String $file| {
file_line { "umask_${file}":
path => $file,
match => '^\s*umask\s+0(02|22)$',
line => ' umask 027',
multiple => true,
}
}Jason St-Cyr
10/01/2026, 12:07 PMOleksandr Lytvyn
10/02/2026, 10:59 AM