In case, if you don't specify a resource’s action, then Chef applies the default action.
For example, in resource 1, the action is not specified, still, it will take a default action.
file 'C:UsersAdministratorchef-reposettings.ini' do
content 'greeting=hello world'
end
In resource 2, when you define the action with create command, it is also used to create the default action.
file 'C:UsersAdministratorchef-reposettings.ini' do
action :create
content 'greeting=hello world'
end