the resource_directory has only 2 actions available: create and delete
resource_directory
create
delete
I need to update the owner and group of a directory recursi
I would use plain resource directory with action :create. Per documentation:
action :create
:create Default. Create a directory. If a directory already exists (but does not match), update that directory to match
https://docs.chef.io/resource_directory.html