- name: Postfix | Set debconf values debconf: name=postfix question={{ item.question }} value={{ item.value }} vtype={{ item.vtype }} with_items: - { question: 'postfix/main_mailer_type', value: "Internet Site", vtype: 'select' } - { question: 'postfix/mailname' , value: "{{ fqdn }}" , vtype: 'string' } - { question: 'postfix/relayhost' , value: "$mydomain" , vtype: 'string' } - { question: 'postfix/protocols' , value: "loopback-only", vtype: 'string' } - { question: 'postfix/destinations' , value: "" , vtype: 'string' }
failed: [hostname] => (item={'vtype': 'string', 'question': 'postfix/main_mailer_type', 'value': 'Internet Site'}) => {"failed": true, "item": {"question": "postfix/main_mailer_type", "value": "Internet Site", "vtype": "select"}}
msg: this module requires key=value arguments (['name=postfix', 'question=postfix/main_mailer_type', 'value=Internet', 'Site', 'vtype=string'])