should be possible to use httpd module for certs

This commit is contained in:
nazunalika 2022-03-16 00:30:42 -07:00
parent baa0024b41
commit 775c389c45
Signed by: label
GPG Key ID: 6735C0E1BD65D048
4 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,6 @@
--- ---
# This playbook is meant to be used with callable variables, like adhoc or AWX. # This playbook is meant to be used with callable variables, like adhoc or AWX.
# What: Creates an organization/group in Gitea # What: Creates an organization/group in Gitea, relying on the gitea collection
# What is expected: # What is expected:
- name: Create Gitea Organization or Group - name: Create Gitea Organization or Group
hosts: all hosts: all
@ -8,5 +8,8 @@
vars_files: vars_files:
- "vars/common.yml" - "vars/common.yml"
# Create org
# Optionally assign user as part of owner team
# Remove automated account
tasks: tasks:
... ...

View File

@ -1,4 +1,6 @@
--- ---
# This does not use the gitea collection to install. Instead, we are installing
# from our own packages built for EL/Fedora in Copr.
- name: Setup Gitea - name: Setup Gitea
hosts: all hosts: all
become: true become: true
@ -27,7 +29,7 @@
roles: roles:
- role: rockylinux.ipagetcert - role: rockylinux.ipagetcert
state: present state: present
when: gitea_web_config_certs|bool when: gitea_web_config_certs_internal|bool
tasks: tasks:
- name: Install and Configure Gitea - name: Install and Configure Gitea

View File

@ -1,5 +1,6 @@
--- ---
- hosts: localhost - hosts: localhost
remote_user: root become: true
tasks: tasks:
- import_tasks: example.yml - import_tasks: gitea.yml
...

View File

@ -2,7 +2,8 @@
gitea_web_install: "httpd" gitea_web_install: "httpd"
gitea_web_username: "{% if gitea_web_install == 'httpd' %}apache{% else %}{{ gitea_web_install }}{% endif %}" gitea_web_username: "{% if gitea_web_install == 'httpd' %}apache{% else %}{{ gitea_web_install }}{% endif %}"
gitea_web_config: "true" gitea_web_config: "true"
gitea_web_config_certs: "false" gitea_web_config_certs_internal: "false"
gitea_web_config_certs_external: "false"
gitea_themes: "auto,gitea,arc-green,gitea-blue,gitea-modern,carbonred,darkred,pitchblack" gitea_themes: "auto,gitea,arc-green,gitea-blue,gitea-modern,carbonred,darkred,pitchblack"
gitea_basename: "git.resf.org" gitea_basename: "git.resf.org"
gitea_automation_user: "rockyautomation" gitea_automation_user: "rockyautomation"