#22 update package command to not use items
Merged 4 years ago by pingou. Opened 4 years ago by abompard.
fedora-infra/ abompard/ansible fix-with-items  into  master

file modified
+14 -12
@@ -2,22 +2,24 @@ 

  # Configuration for the notifications consumer

  

  - name: install needed packages

-   package: name={{ item }} state=present

-   with_items:

-   - koji

-   - fedmsg

-   - python-paramiko

-   - python-fedimg

-   - python-libcloud

-   - python-fedimg

-   - python-boto3

+   package:

+     state: present

+     name:

+     - koji

+     - fedmsg

+     - python-paramiko

+     - python-fedimg

+     - python-libcloud

+     - python-fedimg

+     - python-boto3

    tags:

    - fedimg

  

  - name: install extra packages in staging

-   package: name={{ item }} state=present

-   with_items:

-   - euca2ools

+   package:

+     state: present

+     name:

+     - euca2ools

    tags:

    - fedimg

  

@@ -2,13 +2,14 @@ 

  # correctly is actually included as part of the fedmsg/base role.

  

  - name: install datanommer packages

-   package: name="{{ item }}" state=present

-   with_items:

-   - python-datanommer-consumer

-   - python-datanommer-models

-   - python-psycopg2

-   - datanommer-commands

-   tags:

+   package:

+     state: present

+     name:

+     - python-datanommer-consumer

+     - python-datanommer-models

+     - python-psycopg2

+     - datanommer-commands

+     tags:

    - packages

    - datanommer

  

@@ -2,10 +2,11 @@ 

  # Tasks to set up fedmsg-gateway-slave

  

  - name: install needed packages

-   package: name={{ item }} state=present

-   with_items:

-   - fedmsg-gateway

-   - stunnel

+   package:

+     state: present

+     name:

+     - fedmsg-gateway

+     - stunnel

    tags:

    - packages

    - fedmsg/gateway

@@ -1,9 +1,10 @@ 

  

  - name: install package for fedmsg-irc

-   package: name={{ item }} state=present

-   tags:

-   - packages

-   - fedmsg/irc

+   package:

+     state: present

+     name:

+     - packages

+     - fedmsg/irc

    with_items:

    - fedmsg-irc

    - python2-fedmsg-meta-fedora-infrastructure