make some users admin
but ignore errors, because those users may not exists untill they log in for the first time
This commit is contained in:
parent
403c2e2a77
commit
754e2e2844
1 changed files with 36 additions and 0 deletions
|
@ -37,6 +37,42 @@
|
|||
|
||||
- include: "psql_setup.yml"
|
||||
|
||||
- name: populate db
|
||||
command: ./manage.py create_db
|
||||
sudo: yes
|
||||
sudo_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
|
||||
- name: upgrade db to head
|
||||
command: alembic upgrade head
|
||||
sudo: yes
|
||||
sudo_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
|
||||
- name: set up chroots
|
||||
command: ./manage.py create_chroot epel-5-i386 epel-5-x86_64 epel-6-i386 epel-6-x86_64 epel-7-x86_64 fedora-20-i386 fedora-20-x86_64 fedora-21-xi386 fedora-21-x86_64 fedora-22-i386 fedora-22-x86_64 fedora-rawhide-i386 fedora-rawhide-x86_64
|
||||
sudo: yes
|
||||
sudo_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
|
||||
- name: set up admins
|
||||
command: ./manage.py alter_user --admin {{ item }}
|
||||
sudo: yes
|
||||
sudo_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
ignore_errors: yes
|
||||
with_items:
|
||||
- msuchy
|
||||
- sgallagh
|
||||
- spot
|
||||
- nb
|
||||
- kevin
|
||||
- vgologuz
|
||||
|
||||
- name: install ssl certificates for production
|
||||
include: "install_certs.yml"
|
||||
when: not devel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue