|
| 1 | +--- |
| 2 | +- name: create directory for custom logos |
| 3 | + become: true |
| 4 | + ansible.builtin.file: |
| 5 | + path: "{{ item }}" |
| 6 | + state: directory |
| 7 | + owner: "{{ gitea_user }}" |
| 8 | + group: "{{ gitea_group }}" |
| 9 | + mode: 'u=rwX,g=rX,o=' |
| 10 | + with_items: |
| 11 | + - "{{ gitea_custom }}/public" |
| 12 | + - "{{ gitea_custom }}/public/img" |
| 13 | + |
| 14 | +- name: transfer custom logo.svg |
| 15 | + become: true |
| 16 | + ansible.builtin.copy: |
| 17 | + src: "{{ lookup('first_found', transfer_custom_logo_logosvg) }}" |
| 18 | + dest: "{{ gitea_custom }}/public/img/logo.svg" |
| 19 | + owner: "{{ gitea_user }}" |
| 20 | + group: "{{ gitea_group }}" |
| 21 | + mode: '0644' |
| 22 | + ignore_errors: true |
| 23 | + |
| 24 | +- name: transfer custom logo.png |
| 25 | + become: true |
| 26 | + ansible.builtin.copy: |
| 27 | + src: "{{ lookup('first_found', transfer_custom_logo_logopng) }}" |
| 28 | + dest: "{{ gitea_custom }}/public/img/logo.png" |
| 29 | + owner: "{{ gitea_user }}" |
| 30 | + group: "{{ gitea_group }}" |
| 31 | + mode: '0644' |
| 32 | + ignore_errors: true |
| 33 | + |
| 34 | +- name: transfer custom favicon.png |
| 35 | + become: true |
| 36 | + ansible.builtin.copy: |
| 37 | + src: "{{ lookup('first_found', transfer_custom_logo_faviconpng) }}" |
| 38 | + dest: "{{ gitea_custom }}/public/img/favicon.png" |
| 39 | + owner: "{{ gitea_user }}" |
| 40 | + group: "{{ gitea_group }}" |
| 41 | + mode: '0644' |
| 42 | + ignore_errors: true |
| 43 | + |
| 44 | +- name: transfer custom apple-touch-icon.png |
| 45 | + become: true |
| 46 | + ansible.builtin.copy: |
| 47 | + src: "{{ lookup('first_found', transfer_custom_logo_appletouchiconpng) }}" |
| 48 | + dest: "{{ gitea_custom }}/public/img/apple-touch-icon.png" |
| 49 | + owner: "{{ gitea_user }}" |
| 50 | + group: "{{ gitea_group }}" |
| 51 | + mode: '0644' |
| 52 | + ignore_errors: true |
0 commit comments