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

@ -77,7 +77,7 @@ gitea_open_ports:
state: present
gitea_global_log_level: Info
gitea_global_log_dir: "{{ gitea_base_dir }}/log"
gitea_global_log_dir: "{{ gitea_base_dir }}/log"
gitea_file_log_level: "{{ gitea_global_log_level }}"
gitea_file_log_rotate_enabled: True
gitea_file_log_rotate_daily_enabled: True

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)
@ -84,11 +55,11 @@
name: "{{ item.name }}"
rules: "{{ item.rules }}"
state: "{{ item.state }}"
weight: "{{ item.weight|default(omit) }}"
table: "{{ item.table|default(omit) }}"
weight: "{{ item.weight | default(omit) }}"
table: "{{ item.table | default(omit) }}"
with_items: "{{ gitea_open_ports }}"
loop_control:
label: "{{item.name}}"
label: "{{ item.name }}"
when: gitea_iptables_enabled
become: True
become_user: root