Making all resource variables optional

Only writing them if they are set.

Also renamed some to be consistent.
Run confd once during playbook run to validate the configuration