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
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
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
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
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