fix up the plugin and the playbook

This commit is contained in:
Seth Vidal 2012-10-30 22:31:53 +00:00
parent fda1dfa5ff
commit 924befe5ae
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ class ActionModule(object):
self.runner = runner self.runner = runner
def run(self, conn, tmp, module_name, module_args, inject): def run(self, conn, tmp, module_name, module_args, inject):
args = parse_kv(self.runner.module_args) args = parse_kv(module_args)
if not 'hostname' in args: if not 'hostname' in args:
raise ae("'hostname' is a required argument.") raise ae("'hostname' is a required argument.")

View file

@ -4,7 +4,7 @@
register: inst_res register: inst_res
- name: add it to the special group - name: add it to the special group
local_action: add_host hostname="{{ inst_res.instances[0].public_ip }}" groupname=tmp_just_created local_action: add_host hostname=${inst_res.instances[0].public_ip} groupname=tmp_just_created
- name: mail off about where it is - name: mail off about where it is
local_action: mail to=sysadmin-main-members@fedoraproject.org from=ansible-create@fedoraproject.org subject=${inst_res.instances[0].public_ip} msg="cloud instance created on ${inst_res.instances[0].public_ip}\n instance id - ${inst_res.instances[0].id} " local_action: mail to=sysadmin-main-members@fedoraproject.org from=ansible-create@fedoraproject.org subject=${inst_res.instances[0].public_ip} msg="cloud instance created on ${inst_res.instances[0].public_ip}\n instance id - ${inst_res.instances[0].id} "