Compare commits
2 Commits
9247acf2d2
...
52e7aa80e2
Author | SHA1 | Date | |
---|---|---|---|
52e7aa80e2 | |||
9a54413b91 |
13
ansible.cfg
13
ansible.cfg
@ -2,13 +2,12 @@
|
|||||||
inventory = hosts
|
inventory = hosts
|
||||||
roles_path = roles
|
roles_path = roles
|
||||||
collections_path = collections
|
collections_path = collections
|
||||||
#remote_tmp = /tmp/.ansible-${USER}/tmp
|
gathering = smart
|
||||||
#gathering = smart
|
gather_timeout = 300
|
||||||
#gather_timeout = 300
|
fact_path = facts.d
|
||||||
#fact_path = facts.d
|
fact_caching = jsonfile
|
||||||
#fact_caching = jsonfile
|
fact_caching_connection = facts.d
|
||||||
#fact_caching_connection = facts.d
|
fact_caching_timeout = 300
|
||||||
#fact_caching_timeout = 300
|
|
||||||
retry_files_enabled = False
|
retry_files_enabled = False
|
||||||
forks = 40
|
forks = 40
|
||||||
timeout = 30
|
timeout = 30
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: Deploy Gitea
|
- name: Deploy Gitea
|
||||||
hosts: all
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
|
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
@ -73,6 +73,9 @@
|
|||||||
- /etc/gitea
|
- /etc/gitea
|
||||||
|
|
||||||
|
|
||||||
|
- name: Manage Gitea service
|
||||||
|
when: ansible_virtualization_type != "container"
|
||||||
|
block:
|
||||||
- name: Deploy unit file for Gitea
|
- name: Deploy unit file for Gitea
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src : templates/gitea.service.j2
|
src : templates/gitea.service.j2
|
||||||
@ -81,12 +84,10 @@
|
|||||||
group : root
|
group : root
|
||||||
mode : "0644"
|
mode : "0644"
|
||||||
|
|
||||||
|
|
||||||
- name: Reload Systemd
|
- name: Reload Systemd
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
||||||
|
|
||||||
- name: Start Gitea
|
- name: Start Gitea
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name : gitea
|
name : gitea
|
||||||
@ -99,6 +100,7 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name : gitea
|
name : gitea
|
||||||
state : restarted
|
state : restarted
|
||||||
|
when: ansible_virtualization_type != "container"
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user