running second task from inside playbook

I have written a playbook to install some proxy servers on servers.
Now I would need to add a task inside this playbook, so the server get’s entered into my RADIUS server config too. For this I would need to:

  • connect to another server using SSH
  • edit a file on this server

  • How to “connect” to another server from inside a playbook? I don’t like to write another playbook for this (Looking forward to get this done in one run at all).

You can ‘delegate’ actions to other hosts.

http://docs.ansible.com/ansible/playbooks_delegation.html

that should just be a task run against the radius server in a different role.