Use a loop to repeat the task as many times as you need On Tue, 30 Jul 2019 at 10:26, Rahul Kumar <[email protected]> wrote:
> Hi Team, > Currently I am trying to provision Openstack resources using Ansible with > sample template snippet as below: > os_server: > state: present > cloud: smscrhosp > name: test-instance > image: CentOS-7-x86_64-GenericCloud > key_name: mariachi-pub-key > timeout: 200 > flavor: m1.small > network: test-network > auto_ip: yes > security_groups:\\\\\\\\ > > I want to know , if our topology needs 10 nodes , then do we need to write > this os_server 10 times in Playbook > or is there any better way to achive same? > > Rahul > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAGH8rEzWEkhCMvnM8E2DMv9m3oYJ-tPVTVdJR9HWCQ%2BsdFkeXw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAGH8rEzWEkhCMvnM8E2DMv9m3oYJ-tPVTVdJR9HWCQ%2BsdFkeXw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOWhttyuWymErJNqqoeq7D55K5Ni1VscG%3D%3D%2Ba4BYpuNrA%40mail.gmail.com.
