fix spaces

This commit is contained in:
Robert Kaussow 2019-01-09 20:36:53 +01:00
parent 4df1c5b42f
commit b5f26db474
2 changed files with 4 additions and 33 deletions

View File

@ -32,19 +32,6 @@
dest: "{{ gitea_base_dir }}/gitea-latest"
state: link
# - name: Register current INTERNAL_TOKEN
# shell: "awk -F '=' '/INTERNAL_TOKEN/ {print $2}' {{ gitea_config_dir }}/app.ini | tr -d ' '"
# register: internal_token
# changed_when: False
# - name: Remove INTERNAL_TOKEN
# ini_file:
# path: "{{ gitea_config_dir }}/app.ini"
# section: security
# option: INTERNAL_TOKEN
# state: absent
# changed_when: False
- name: Copy config file
template:
src: "custom/conf/app.ini.j2"
@ -52,22 +39,6 @@
mode: 0600
notify: __gitea_restart
register: add_config
# - name: Re-add INTERNAL_TOKEN if configuration not changed
# ini_file:
# path: "{{ gitea_config_dir }}/app.ini"
# section: security
# option: INTERNAL_TOKEN
# value: "{{ internal_token.stdout }}"
# changed_when: False
# when: not add_config.changed
# - name: Copy env file
# template:
# src: "custom/conf/gitea.env.j2"
# dest: "{{ gitea_config_dir }}/gitea.env"
# notify:
# - gitea_restart
become: True
become_user: "{{ gitea_user }}"
when: gitea_installed.stat.exists == False or gitea_current.stdout is version_compare(gitea_version, operator='<=', strict=True)