[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread Evgen Morokin
Hi, example from previous reply will do all stages for you: - name: Ensure packages are installed and the latest available version yum: name="{{ item }}" state=latest with_items: - some_package - some_other_package - a_third_package This will check package presence, then install

Re: [ansible-project] How to create multiple folders with loop in ansible

2015-10-03 Thread Evgen Morokin
As it was described in my previous post ;-), but anyway thanks for the note. On Saturday, October 3, 2015 at 11:25:08 PM UTC-4, Igor Cicimov wrote: > > You have typo here > > register: dies > > it shoild be: > > register: dirs > > -- You received this message because you are subscribed to the Go

Re: [ansible-project] How to create multiple folders with loop in ansible

2015-10-02 Thread Evgen Morokin
help. > > Regards, > Deborah. > > > On Thu, Oct 1, 2015 at 7:39 PM, Evgen Morokin > wrote: > >> Hi, you can do something like: >> >> - name: create dirs >> file: dest=/tmp/tomcat-instance{{ item }} state=directory >> with_sequen

Re: [ansible-project] How to create multiple folders with loop in ansible

2015-10-02 Thread Evgen Morokin
ch for the help. > > Regards, > Deborah. > > > On Thu, Oct 1, 2015 at 7:39 PM, Evgen Morokin > wrote: > >> Hi, you can do something like: >> >> - name: create dirs >> file: dest=/tmp/tomcat-instance{{ item }} state=directory >> with_sequen

Re: [ansible-project] How to create multiple folders with loop in ansible

2015-10-01 Thread Evgen Morokin
Hi, you can do something like: - name: create dirs file: dest=/tmp/tomcat-instance{{ item }} state=directory with_sequence: start=1 end=3 register: dies - debug: var=dirs.results - name: do something with tomcat shell: echo "sudo tomcat-instance1-create -p {{ 8080 + (item.i