diff --git a/tasks/install.yml b/tasks/install.yml index ec8ef6e..64cd727 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -13,7 +13,7 @@ file: path: "{{ item }}" state: directory - with_items: + loop: - "{{ gitea_bin_dir }}" - "{{ gitea_config_dir }}" - "{{ gitea_data_dir }}" @@ -62,7 +62,7 @@ state: "{{ item.state }}" weight: "{{ item.weight | default(omit) }}" table: "{{ item.table | default(omit) }}" - with_items: "{{ gitea_open_ports }}" + loop: "{{ gitea_open_ports }}" loop_control: label: "{{ item.name }}" when: gitea_iptables_enabled | bool diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 8327f90..abecd78 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -30,7 +30,7 @@ package: name: "{{ item }}" state: present - with_items: + loop: - "{{ gitea_packages }}" become: True become_user: root diff --git a/tasks/tls.yml b/tasks/tls.yml index 10250b1..e33d86d 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -7,7 +7,7 @@ owner: "{{ gitea_user }}" group: "{{ gitea_group }}" recurse: True - with_items: + loop: - "{{ gitea_tls_cert_path | dirname }}" - "{{ gitea_tls_key_path | dirname }}" become: True @@ -19,7 +19,7 @@ src: "{{ item.src }}" dest: "{{ item.dest }}" mode: "{{ item.mode }}" - with_items: + loop: - { src: "{{ gitea_tls_key_source }}", dest: '{{ gitea_tls_key_path }}', mode: '0600' } - { src: "{{ gitea_tls_cert_source }}", dest: '{{ gitea_tls_cert_path }}', mode: '0750' } loop_control: