diff --git a/tasks/configure.yml b/tasks/configure.yml index 1f5f3e2..755029b 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -55,6 +55,18 @@ loop: "{{ puppet_master_config | dict2items }}" notify: 'Restart puppetserver' +- name: Ensure puppet server main section is configured + ini_file: + path: "{{ puppet_config_file }}" + section: main + option: "{{ item.key }}" + value: "{{ item.value }}" + mode: '0644' + backup: true + create: true + loop: "{{ puppet_master_config | dict2items }}" + notify: 'Restart puppetserver' + - name: Ensure puppet server server section is configured ini_file: path: "{{ puppet_config_file }}"