#6 koji: yum -> package
Merged 4 years ago by pingou. Opened 4 years ago by nphilipp.
fedora-infra/ nphilipp/ansible master--yum-dnf-package--koji  into  master

@@ -67,7 +67,7 @@ 

      # Note that "latest" here might as well be "present".  The package shouldn't

      # be present in the first place.  In any case, if it is erroneously present,

      # then we really do want the latest version.

-     yum: name=koji state=latest update_cache=yes

+     package: name=koji state=latest update_cache=yes

      when: db_upgrade_file is defined

    - name: Execute the db upgrade script

      shell: psql koji  < {{db_upgrade_file}}
@@ -75,7 +75,7 @@ 

      become_user: postgres

      when: db_upgrade_file is defined

    - name: Remove the package, since we no longer need the script.

-     yum: name=koji state=absent

+     package: name=koji state=absent

      when: db_upgrade_file is defined

  

  - name: update and restart the koji hubs before we touch the builders
@@ -86,7 +86,7 @@ 

     - "/srv/private/ansible/vars.yml"

     - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

    tasks:

-   - yum: name=koji-hub state=latest update_cache=yes

+   - package: name=koji-hub state=latest update_cache=yes

    - name: restart httpd on the koji-hubs.

      service: name="httpd" state=started

    - name: unsilence nagios
@@ -102,6 +102,6 @@ 

     - "/srv/private/ansible/vars.yml"

     - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

    tasks:

-   - yum: name=koji-builder state=latest update_cache=yes

+   - package: name=koji-builder state=latest update_cache=yes

    - name: restart all the builders.  so many.

      service: name="kojid" state=restarted

rebased onto 281fa7efcccf6ac66993304039c525575c6fc3e5

4 years ago

rebased onto 87ea43ceca4044f79f66c9c99a04a29fb2877c41

4 years ago

rebased onto 87ea43ceca4044f79f66c9c99a04a29fb2877c41

4 years ago

Pull-Request has been merged by pingou

4 years ago
Metadata