@@ -13,3 +13,5 @@ gitea_download_url: https://dl.gitea.io/gitea/{{gitea_download_version}}/{{gitea | |||||
gitea_admin_username: testadmin | gitea_admin_username: testadmin | ||||
gitea_admin_password: testadmin | gitea_admin_password: testadmin | ||||
gitea_admin_email: admin@example.com | gitea_admin_email: admin@example.com | ||||
gitea_database_password: "{{ ansible_local.gitea.database_password }}" |
@@ -0,0 +1,14 @@ | |||||
--- | |||||
- name: ansible local facts directory | |||||
file: | |||||
path: /etc/ansible/facts.d | |||||
state: directory | |||||
- name: set ansible local fact for gitea | |||||
copy: | |||||
content: "{{_gitea_local_facts|to_json}}" | |||||
dest: /etc/ansible/facts.d/gitea.fact | |||||
- name: Gathering Facts | |||||
setup: |
@@ -1,5 +1,6 @@ | |||||
--- | --- | ||||
- import_tasks: local_facts.yaml | |||||
- import_tasks: setup.yaml | - import_tasks: setup.yaml | ||||
- import_tasks: download.yaml | - import_tasks: download.yaml | ||||
@@ -1,3 +1,6 @@ | |||||
_gitea_local_facts: | |||||
database_password: "{% if not ansible_local.gitea.database_password is defined %}{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}{% else %}{{ ansible_local.gitea.database_password }}{% endif %}" | |||||
_gitea_nginx_vhosts: | _gitea_nginx_vhosts: | ||||
- name: gitea | - name: gitea | ||||
server_names: | server_names: | ||||