I added user='root' because root owns those files and iirc it didn't work with env.sudo_user.