feat: Deploy configuration file #2
@ -37,21 +37,40 @@
|
|||||||
become: true
|
become: true
|
||||||
notify: Redémarrer gitea.service
|
notify: Redémarrer gitea.service
|
||||||
|
|
||||||
- name: Déployer le service
|
- name: Créer le dossier de configuration
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ gitea_install_path }}/custom/conf/"
|
||||||
|
state: directory
|
||||||
|
owner: gitea
|
||||||
|
group: gitea
|
||||||
|
mode: u=rwX,g=rX,o=
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Déployer le fichier de configuration
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ inventory_hostname }}.ini.j2"
|
||||||
|
dest: "{{ gitea_install_path }}/custom/conf/app.ini"
|
||||||
|
owner: gitea
|
||||||
|
group: gitea
|
||||||
|
mode: u=rw,g=r,o=
|
||||||
|
become: true
|
||||||
|
notify: Redémarrer gitea.service
|
||||||
|
|
||||||
|
- name: Déployer le service
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
src: gitea.service.j2
|
src: gitea.service.j2
|
||||||
dest: /etc/systemd/system/gitea.service
|
dest: /etc/systemd/system/gitea.service
|
||||||
|
become: true
|
||||||
notify: Redémarrer gitea.service
|
notify: Redémarrer gitea.service
|
||||||
|
|
||||||
- name: Déployer la configuration logrotate
|
- name: Déployer la configuration logrotate
|
||||||
become: true
|
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
src: logrotate.conf.j2
|
src: logrotate.conf.j2
|
||||||
dest: /etc/logrotate.d/gitea
|
dest: /etc/logrotate.d/gitea
|
||||||
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user