No, the picture is that the role is not on the hosts.
First I random a host (that script does that).
Once a host is selected then the role is randomized.
On Thursday, January 3, 2019 at 11:09:40 AM UTC-2, Francis Santos wrote:
>
> I gotta random both the hosts and the roles.
> I successfully randomed the hosts, but I not getting the roles to random.
> Here is what I got
>
> ---
> - hosts: "{{ (groups['foo'] | shuffle)[0:1] }}"
> become: yes
> vars:
> - ansible_sudo_pass: ******
>
> * roles: *
> * - reboot || shutdown*
>
> Need a way to random a single role among all roles. In this example I have
> a reboot and shutdown
>
> Any suggestions?
>
>
--
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/7898d96d-fbb7-4b92-94f1-509faafef0aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.