Here is run.yml and rozofs.yml, I want to get the sequence number of each
running.
there is 4 IP address, 90,91,92,93, I want to know where I can get 1,2,3,4
from each running. I am use "echo " to put each IP address, I want to the
sequence number too.
$ run.yml
---- hosts: "{{ store }}"
remote_user: root
vars_files:
- /vars/rozofs.yml
tasks:
- name: mount fs
command: echo "{{ inventory_hostname }}" >> /root/temp.sh
- name: sequence number
command: echo ??? >> /root/temp.sh
$ rozofs.yml---
store: 192.168.2.90 192.168.2.91 192.168.2.92 192.168.2.93
$ temp.sh192.168.2.901
$ temp.sh192.168.2.934
--
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/0f335df7-274a-46b7-a831-547e7feedc7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.