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 #one of the roles are reboot, but there are a few more and must be randomized
Any suggestions?
--
Atenciosamente/ Regards/ Mit freundlichen Grüßen
_________________________________
Frank Santos
Phone:
skav...@gmail.com