Compare commits
No commits in common. "dc191e4b4de12295c39acfab57ceec64506790f3" and "af5cf98e2d9235a44c8b48828ea7701383922ebf" have entirely different histories.
dc191e4b4d
...
af5cf98e2d
2 changed files with 7 additions and 10 deletions
|
@ -31,9 +31,11 @@ See list of [default variables](defaults/main.yml).
|
||||||
Example of a basic forgejo.yml playbook:
|
Example of a basic forgejo.yml playbook:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- hosts: forgejo
|
hosts:
|
||||||
roles:
|
- forgejo
|
||||||
- forgejo
|
|
||||||
|
roles:
|
||||||
|
- forgejo
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run the playbook:
|
Then run the playbook:
|
||||||
|
|
|
@ -19,17 +19,12 @@
|
||||||
owner: forgejo
|
owner: forgejo
|
||||||
group: forgejo
|
group: forgejo
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
loop: &forgejo_directories
|
loop:
|
||||||
- "{{ forgejo_config_dir }}"
|
- "{{ forgejo_config_dir }}"
|
||||||
- "{{ forgejo_home_dir }}"
|
- "{{ forgejo_home_dir }}"
|
||||||
- "{{ forgejo_home_dir }}/server"
|
- "{{ forgejo_home_dir }}/server"
|
||||||
- "{{ forgejo_home_dir }}/db"
|
- "{{ forgejo_home_dir }}/db"
|
||||||
|
|
||||||
- name: ensure permissions on those directories
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: "chown -R forgejo:forgejo {{ item }}"
|
|
||||||
loop: *forgejo_directories
|
|
||||||
|
|
||||||
- name: create docker-compose configuration
|
- name: create docker-compose configuration
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item.name }}.j2"
|
src: "{{ item.name }}.j2"
|
||||||
|
@ -62,5 +57,5 @@
|
||||||
jump: ACCEPT
|
jump: ACCEPT
|
||||||
comment: forgejo
|
comment: forgejo
|
||||||
loop: "{{ forgejo_allowed_sources }}"
|
loop: "{{ forgejo_allowed_sources }}"
|
||||||
notify: save iptables
|
notify: Save iptables
|
||||||
when: forgejo_manage_iptables
|
when: forgejo_manage_iptables
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue