Compare commits

..

No commits in common. "52e7aa80e2e00d73054c7ea9313289291f145e81" and "9247acf2d2e666d68c306043a61246bd26724c45" have entirely different histories.

2 changed files with 25 additions and 26 deletions

View File

@ -2,12 +2,13 @@
inventory = hosts inventory = hosts
roles_path = roles roles_path = roles
collections_path = collections collections_path = collections
gathering = smart #remote_tmp = /tmp/.ansible-${USER}/tmp
gather_timeout = 300 #gathering = smart
fact_path = facts.d #gather_timeout = 300
fact_caching = jsonfile #fact_path = facts.d
fact_caching_connection = facts.d #fact_caching = jsonfile
fact_caching_timeout = 300 #fact_caching_connection = facts.d
#fact_caching_timeout = 300
retry_files_enabled = False retry_files_enabled = False
forks = 40 forks = 40
timeout = 30 timeout = 30

View File

@ -2,7 +2,7 @@
- name: Deploy Gitea - name: Deploy Gitea
hosts: all hosts: all
become: true become: true
gather_facts: true gather_facts: false
vars: vars:
@ -73,26 +73,25 @@
- /etc/gitea - /etc/gitea
- name: Manage Gitea service - name: Deploy unit file for Gitea
when: ansible_virtualization_type != "container" ansible.builtin.template:
block: src : templates/gitea.service.j2
- name: Deploy unit file for Gitea dest : /etc/systemd/system/gitea.service
ansible.builtin.template: owner : root
src : templates/gitea.service.j2 group : root
dest : /etc/systemd/system/gitea.service mode : "0644"
owner : root
group : root
mode : "0644"
- name: Reload Systemd
ansible.builtin.systemd:
daemon_reload: true
- name: Start Gitea - name: Reload Systemd
ansible.builtin.service: ansible.builtin.systemd:
name : gitea daemon_reload: true
state : started
enabled : true
- name: Start Gitea
ansible.builtin.service:
name : gitea
state : started
enabled : true
handlers: handlers:
@ -100,7 +99,6 @@
ansible.builtin.service: ansible.builtin.service:
name : gitea name : gitea
state : restarted state : restarted
when: ansible_virtualization_type != "container"
... ...