running second task from inside playbook

16 views
Skip to first unread message

Janis Heller

unread,
Oct 2, 2016, 10:30:45 PM10/2/16
to Ansible Project
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).

Brian Coca

unread,
Oct 2, 2016, 10:39:04 PM10/2/16
to ansible...@googlegroups.com
You can 'delegate' actions to other hosts.


----------
Brian Coca

John Favorite

unread,
Oct 2, 2016, 10:41:44 PM10/2/16
to ansible...@googlegroups.com
that should just be a task run against the radius server in a different role.

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cg4uHxBLoDXmuu%2BwKuqrAa%3Dc72%2BE_eS%3Dx0TS0mKgmg0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages