Compare commits

...

2 Commits

Author SHA1 Message Date
52e7aa80e2 re-added fact gather stuff
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-25 00:32:50 -05:00
9a54413b91 re-worked some stuff; testing ci 2023-11-25 00:32:31 -05:00
2 changed files with 26 additions and 25 deletions

View File

@ -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

View File

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