switch regenerate keys handler to tasks
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c37f735708
commit
60b34abb84
@ -17,10 +17,3 @@
|
||||
state: restarted
|
||||
when: ansible_service_mgr == "systemd"
|
||||
become: yes
|
||||
|
||||
- name: "regenerate keys"
|
||||
command:
|
||||
cmd: gitea admin -c /etc/gitea/app.ini regenerate keys
|
||||
chdir: /var/lib/gitea
|
||||
become: true
|
||||
become_user: "{{ gitea_user }}"
|
||||
|
@ -26,5 +26,4 @@
|
||||
state: restore
|
||||
target: "{{ gitea_SQl_target_file }}"
|
||||
register: gitea_database_import
|
||||
notify: "regenerate keys"
|
||||
when: gitea_database_creation.changed == true and gitea_SQl_target_file is defined
|
||||
|
@ -1,10 +1,6 @@
|
||||
|
||||
|
||||
- name: select specific Database tasks
|
||||
include_tasks: "database_{{gitea_db_type}}.yml"
|
||||
|
||||
|
||||
|
||||
- name: install gitea
|
||||
pacman:
|
||||
state: present # not required. choices: absent;latest;present. Desired state of the package.
|
||||
@ -12,7 +8,6 @@
|
||||
name: gitea
|
||||
become: yes
|
||||
|
||||
|
||||
- name: "Configure gitea"
|
||||
template:
|
||||
src: app.ini.j2
|
||||
@ -43,6 +38,13 @@
|
||||
when: ansible_service_mgr == "systemd"
|
||||
become: yes
|
||||
|
||||
- name: "regenerate keys"
|
||||
command:
|
||||
cmd: gitea admin -c /etc/gitea/app.ini regenerate keys
|
||||
chdir: /var/lib/gitea
|
||||
become: true
|
||||
become_user: "{{ gitea_user }}"
|
||||
when: gitea_database_import.changed == true
|
||||
|
||||
- name: Install fail2ban jail
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user