copr-be-dev-aws: test ansible PG plugin #4

Seems like become doesn't work.

Relates https://pagure.io/fedora-infrastructure/issue/8675
This commit is contained in:
Pavel Raiskup 2020-02-22 10:27:07 +01:00 committed by Pierre-Yves Chibon
parent e0474a9857
commit 59d7020c0f

View file

@ -2,17 +2,18 @@
hosts: copr_back_dev_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/fedora-cloud.yml
- /srv/private/ansible/files/openstack/passwords.yml
tasks:
- name: touch something in homedir
shell: touch ~/test.touch
become: yes
become_user: praiskup
- name: Create db
postgresql_db: name="coprdb" encoding='UTF-8'
become: yes
become_user: praiskup
become_user: postgres
- name: check/create instance
hosts: copr_back_dev:copr_back_stg:copr_back:copr_back_dev_aws:copr_back_aws