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:
parent
e0474a9857
commit
59d7020c0f
1 changed files with 7 additions and 6 deletions
|
@ -3,16 +3,17 @@
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
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:
|
tasks:
|
||||||
- name: touch something in homedir
|
- name: touch something in homedir
|
||||||
shell: touch ~/test.touch
|
shell: touch ~/test.touch
|
||||||
become: yes
|
become: yes
|
||||||
become_user: praiskup
|
become_user: postgres
|
||||||
|
|
||||||
- name: Create db
|
|
||||||
postgresql_db: name="coprdb" encoding='UTF-8'
|
|
||||||
become: yes
|
|
||||||
become_user: praiskup
|
|
||||||
|
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr_back_dev:copr_back_stg:copr_back:copr_back_dev_aws:copr_back_aws
|
hosts: copr_back_dev:copr_back_stg:copr_back:copr_back_dev_aws:copr_back_aws
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue