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
|
state: restarted
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
become: yes
|
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
|
state: restore
|
||||||
target: "{{ gitea_SQl_target_file }}"
|
target: "{{ gitea_SQl_target_file }}"
|
||||||
register: gitea_database_import
|
register: gitea_database_import
|
||||||
notify: "regenerate keys"
|
|
||||||
when: gitea_database_creation.changed == true and gitea_SQl_target_file is defined
|
when: gitea_database_creation.changed == true and gitea_SQl_target_file is defined
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: select specific Database tasks
|
- name: select specific Database tasks
|
||||||
include_tasks: "database_{{gitea_db_type}}.yml"
|
include_tasks: "database_{{gitea_db_type}}.yml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: install gitea
|
- name: install gitea
|
||||||
pacman:
|
pacman:
|
||||||
state: present # not required. choices: absent;latest;present. Desired state of the package.
|
state: present # not required. choices: absent;latest;present. Desired state of the package.
|
||||||
@ -12,7 +8,6 @@
|
|||||||
name: gitea
|
name: gitea
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
|
||||||
- name: "Configure gitea"
|
- name: "Configure gitea"
|
||||||
template:
|
template:
|
||||||
src: app.ini.j2
|
src: app.ini.j2
|
||||||
@ -43,6 +38,13 @@
|
|||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
become: yes
|
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
|
- name: Install fail2ban jail
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user