I am not able to interpret the below code in Chef cookbook:
systemd_unit '<service_name>' do
action %i[enable start]
end
I read about systemd_unit from systemd_unit resource. However, how is action determined here? I am trying to convert this cookbook to ansible and wanted to understand whats happening in cookbook first.
Also, being new to cookbook, I also wanted to confirm if:
include_recipe '<cookbook_name>'
is provided then my understanding is, it includes default.rb
from the given cookbook and other recipes within that cookbook are not included. Please let me know, if that's correct.