fix molecule test setup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-07-19 18:54:24 +02:00
parent 71f50a0095
commit 4d15e30f65
4 changed files with 19 additions and 2 deletions

View File

@ -39,10 +39,10 @@ gitea_disable_registration: "true"
gitea_postgres_enabled: False
gitea_postgres_ssl_mode: disabled
gitea_postgres_server: postgres.example.com
gitea_postgres_server: "{{ inventory_hostname }}"
gitea_postgres_port: 5432
gitea_postgres_superuser: postgres
gitea_postgres_password: secure
gitea_postgres_password: postgres
gitea_postgres_db:
name: gitea

View File

@ -1,5 +1,16 @@
---
- name: Converge
hosts: all
vars:
postgres_repository_enabled: True
postgres_users:
- name: "postgres"
password: "postgres"
role_attr_flags: SUPERUSER
login_host: localhost
state: present
pam_user: True
roles:
- role: xoxys.postgres
- role: xoxys.gitea

5
requirements.yml Normal file
View File

@ -0,0 +1,5 @@
---
- src: https://gitea.rknet.org/ansible/xoxys.postgres.git
name: xoxys.postgres
scm: git
version: master

View File

@ -70,3 +70,4 @@
no_log: True
when: gitea_postgres_user is defined
delegate_to: "{{ gitea_postgres_server }}"
when: gitea_postgres_enabled | bool