From b5f26db474fb3944f6cc72f437324638d74af3a9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Jan 2019 20:36:53 +0100 Subject: [PATCH] fix spaces --- defaults/main.yml | 2 +- tasks/install.yml | 35 +++-------------------------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index aa50d95..8b8b858 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/install.yml b/tasks/install.yml index 24cd222..a166a66 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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