ansible/playbooks/manual/copr/copr-dist-git-upgrade.yml
Ryan Lerch 2cf38c1f17 [yaml-lint] fix yamllint errors and warnings on plabooks
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-25 19:04:25 +10:00

29 lines
690 B
YAML

---
- name: upgrade copr distgit
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Generic upgrade tasks for copr servers
import_tasks: _generic_tasks.yml
- name: Upgrade copr-distgit packages
dnf:
state: latest
name:
- dist-git
- dist-git-selinux
- copr-dist-git
- copr-selinux
- python3-copr
- python3-copr-common
update_cache: true
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"