Run apt update before install packages

Set apt module with update_cache=true so that apt update is run first.
Besides also made some white spaces change in network template,
as it seems the white spaces for if statement are counted in,
when the file is being written.

Change-Id: I81c9a99f7ba1815691dce37a1323709bcb68f8fb
2 files changed