I've been trying the new debconf module with Postfix on ubuntu 14.04.
Here's the problem section of the roles task file:
- 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' }
The first line causes the following error:
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'])
So despite the fact that the failed value in the error message is seen as
'Internet
Site' ansible debconf appears to treat that space as
something meaningful instead of part of the string.
Am I doing something dumb with quoting in my code or is this likely to be a
bug in debconf module?
(Also starting to think in terms of configuring Postfix with templates like
everyone else...)
TIA
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e8b20e91-20b2-4afb-b80c-ef1b73ed2114%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.