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:
|
||||
|
||||
```yaml
|
||||
- hosts: forgejo
|
||||
roles:
|
||||
- forgejo
|
||||
hosts:
|
||||
- forgejo
|
||||
|
||||
roles:
|
||||
- forgejo
|
||||
```
|
||||
|
||||
Then run the playbook:
|
||||
|
|
|
@ -19,17 +19,12 @@
|
|||
owner: forgejo
|
||||
group: forgejo
|
||||
mode: "0755"
|
||||
loop: &forgejo_directories
|
||||
loop:
|
||||
- "{{ forgejo_config_dir }}"
|
||||
- "{{ forgejo_home_dir }}"
|
||||
- "{{ forgejo_home_dir }}/server"
|
||||
- "{{ 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
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.name }}.j2"
|
||||
|
@ -62,5 +57,5 @@
|
|||
jump: ACCEPT
|
||||
comment: forgejo
|
||||
loop: "{{ forgejo_allowed_sources }}"
|
||||
notify: save iptables
|
||||
notify: Save iptables
|
||||
when: forgejo_manage_iptables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue