fix molecule test setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
71f50a0095
commit
4d15e30f65
|
@ -39,10 +39,10 @@ gitea_disable_registration: "true"
|
||||||
|
|
||||||
gitea_postgres_enabled: False
|
gitea_postgres_enabled: False
|
||||||
gitea_postgres_ssl_mode: disabled
|
gitea_postgres_ssl_mode: disabled
|
||||||
gitea_postgres_server: postgres.example.com
|
gitea_postgres_server: "{{ inventory_hostname }}"
|
||||||
gitea_postgres_port: 5432
|
gitea_postgres_port: 5432
|
||||||
gitea_postgres_superuser: postgres
|
gitea_postgres_superuser: postgres
|
||||||
gitea_postgres_password: secure
|
gitea_postgres_password: postgres
|
||||||
|
|
||||||
gitea_postgres_db:
|
gitea_postgres_db:
|
||||||
name: gitea
|
name: gitea
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
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:
|
roles:
|
||||||
|
- role: xoxys.postgres
|
||||||
- role: xoxys.gitea
|
- role: xoxys.gitea
|
||||||
|
|
5
requirements.yml
Normal file
5
requirements.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- src: https://gitea.rknet.org/ansible/xoxys.postgres.git
|
||||||
|
name: xoxys.postgres
|
||||||
|
scm: git
|
||||||
|
version: master
|
|
@ -70,3 +70,4 @@
|
||||||
no_log: True
|
no_log: True
|
||||||
when: gitea_postgres_user is defined
|
when: gitea_postgres_user is defined
|
||||||
delegate_to: "{{ gitea_postgres_server }}"
|
delegate_to: "{{ gitea_postgres_server }}"
|
||||||
|
when: gitea_postgres_enabled | bool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user