From b9f615dcb3478c41c391ae06ef1e1636b108f952 Mon Sep 17 00:00:00 2001 From: Eric Meehan Date: Fri, 27 Feb 2026 17:30:50 -0500 Subject: [PATCH] Initial commit --- README.md | 38 +++++++++++++++ defaults/main.yml | 3 ++ handlers/main.yml | 3 ++ meta/main.yml | 35 ++++++++++++++ tasks/.actions.yaml.swp | Bin 0 -> 12288 bytes tasks/.gitea.yaml.swp | Bin 0 -> 12288 bytes tasks/.main.yml.swp | Bin 0 -> 12288 bytes tasks/actions.yaml | 23 +++++++++ tasks/gitea.yaml | 105 ++++++++++++++++++++++++++++++++++++++++ tasks/main.yml | 8 +++ tests/inventory | 3 ++ tests/test.yml | 6 +++ vars/main.yml | 3 ++ 13 files changed, 227 insertions(+) create mode 100644 README.md create mode 100644 defaults/main.yml create mode 100644 handlers/main.yml create mode 100644 meta/main.yml create mode 100644 tasks/.actions.yaml.swp create mode 100644 tasks/.gitea.yaml.swp create mode 100644 tasks/.main.yml.swp create mode 100644 tasks/actions.yaml create mode 100644 tasks/gitea.yaml create mode 100644 tasks/main.yml create mode 100644 tests/inventory create mode 100644 tests/test.yml create mode 100644 vars/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..225dd44 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..ba247cc --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,3 @@ +#SPDX-License-Identifier: MIT-0 +--- +# defaults file for ansible-role-gitea diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..010c05c --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,3 @@ +#SPDX-License-Identifier: MIT-0 +--- +# handlers file for ansible-role-gitea diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..36b9858 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,35 @@ +#SPDX-License-Identifier: MIT-0 +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.1 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. diff --git a/tasks/.actions.yaml.swp b/tasks/.actions.yaml.swp new file mode 100644 index 0000000000000000000000000000000000000000..69b1a9d4d0984cbfdb82a2573a6726aaf3ccafd1 GIT binary patch literal 12288 zcmeI2&59F25XXDPG%oYq3lC3VOIL{i5g-CYfCvx)B0vO)01?=9 z0>0Q{FENQzRU#Lwd24R2mNXFoB0vO)01+SpM1Tko0U|&IhyW2F0vkv`WQ<)q!`NF? z`Tzg)_y3O_#=fFHp+2Bqp%m%~>Mm*@)j;i_ex76OJL)m&%Qj=TP#@1S_73$Lbsx2h z`Zj%M136L1M1Tko0U|&IhyW2F0z_b~1o*-c@kU64_91HTH(NK7%*X-QB#yPoAZg!> z(%?MU2Aj7&Hte*P7%Jsp3@c4L|7@y+2j>^XyZBipQcy0bh2rZzNQJs+Oe%^nIws5L_W7 zR?Ezt1qH&@&L(Z~lec7FSbu1toA9Gv`Kn8Pa#(t+_HjK3DOe5oeQQc%q1gvDOjyK^ MZe>s?Gv-tCUswMg82|tP literal 0 HcmV?d00001 diff --git a/tasks/.gitea.yaml.swp b/tasks/.gitea.yaml.swp new file mode 100644 index 0000000000000000000000000000000000000000..d757d4ec1aae7144e6e06001155101e53257da6f GIT binary patch literal 12288 zcmeI2ON<;x8OO_sF|ok`5k)~LLWM1xwd9`hgU4p@8hUrf_Tbr>VQ0pV+X6K$}%&gGU0!YcEnJMg$60{k;_6=zk&@b6~{c>w+Z?t{0%6imPm!FRz4 za2V_Z4-XRZSMU+|5ZnPF=ztY)1ndP5KTpWtz(?Q%@D_LtC}4w&;0$;X{PS~!{1*HY z+y&Rbcfb+wp95$I4uL)3Px}dZ7f7%MPJ+xqq1^ckXq`VOb1bXP! zt)zytW>lZ7T(q{jIW=6#;O9eKfkdGlvV6&uy)$!}G@Q8{5a zeBd(QIC;ttFU=gIYolCW7YVb-)2v>87zB4*Y1sHWOL38pVph8#_d>C?wwXe^)-HBD zceq`KMeesX(QfOlOZ8^EQ@74-wl~sI{T>e{6^CCZx&Q>Wb{lt_*u2HB&(zE z9kbiLyuRyRP}=X-Hy2H(?nbX;b=sS~8vW+-w+lYvB6EEm?esVe-J6v~A=g{xYO{`5 z3L`-2gt=aEtSB|t*4q76&uTVW7aOhfHHxVh6rA=u>t?TRnU~C-3CG)PY9+Nd%k1~s z)@J>DqubjwdyRH$N7X>j>Qk2Ox!hOt0o3B9Hd^go+AO8(^>b#w*|U2$1?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led: true + redis-cluster: + enabled: false + postgresql: + enabled: true + image: + tag: 16.4.0-debian-12-r9 + global: + postgresql: + auth: + username: gitea + password: "{{ gitea_admin_password }}" + database: gitea + primary: + persistence: + enabled: true + size: 2Ti + postgresql-ha: + enabled: false diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..07803e6 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,8 @@ +#SPDX-License-Identifier: MIT-0 +--- +# tasks file for ansible-role-gitea +- name: gitea + include_tasks: "{{ item }}" + loop: + - gitea.yaml + - actions.yaml diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..03ca42f --- /dev/null +++ b/tests/inventory @@ -0,0 +1,3 @@ +#SPDX-License-Identifier: MIT-0 +localhost + diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..0627e47 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,6 @@ +#SPDX-License-Identifier: MIT-0 +--- +- hosts: localhost + remote_user: root + roles: + - ansible-role-gitea diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..17edae4 --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,3 @@ +#SPDX-License-Identifier: MIT-0 +--- +# vars file for ansible-role-gitea