diff --git a/README.md b/README.md index b0edfa7..abefc53 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ role-forgejo ========= -A brief description of the role goes here. +This role installs and configures the forgejo git server and web UI Requirements ------------ -No requirements +The nginx-ssl role is highly recommended to handle ssl termination. Similarly the certbot role is also highly recommended to handle certificate creation/renewal automatically Role Variables -------------- @@ -23,8 +23,8 @@ Example Playbook Template Playbook creation should be handled by playbook-builder. To include role in a playbook, add one of these lines (changing version/branch as needed) to the template with other core entries: -role:mount:v1.0:core,mount -role:mount:testing:core,mount +role:forgejo:v1.0:workload,forgejo +role:forgejo:testing:workload,forgejo License ------- diff --git a/defaults/main.yml b/defaults/main.yml index a0eb46b..565efc3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# defaults file for ${REPO_NAME} +# defaults file for role-forgejo diff --git a/handlers/main.yml b/handlers/main.yml index 192bcab..351d516 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# handlers file for ${REPO_NAME} +# handlers file for role-forgejo diff --git a/tasks/main.yml b/tasks/main.yml index 0482006..17c6db2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,18 @@ #SPDX-License-Identifier: MIT-0 --- -# tasks file for ${REPO_NAME} +# tasks file for role-forgejo +- name: install mariadb clients + ansible.builtin.package: + name: mariadb-clients + state: present + +- name: install forgejo + ansible.builtin.package: + name: forgejo + state: present + +- name: ensure forgejo is running + service: + name: forgejo + state: started + enabled: yes diff --git a/tests/test.yml b/tests/test.yml index a1c8646..7149dcc 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -3,4 +3,4 @@ - hosts: localhost remote_user: root roles: - - ${REPO_NAME} + - role-forgejo diff --git a/vars/main.yml b/vars/main.yml index f31a73e..cfb7a10 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# vars file for ${REPO_NAME} +# vars file for role-forgejo \ No newline at end of file