diff --git a/tasks/main.yml b/tasks/main.yml index 961823a..c7a8584 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,17 +8,17 @@ createhome: false shell: '{{ item.user_shell | default(springboot_user_shell) }}' system: '{{ item.system_user | default(springboot_system_user) }}' - looop: '{{ springboot_apps }}' + loop: '{{ springboot_apps }}' when: item.user is defined - name: Create the install directory of the springboot app {{ item.name }} file: dest={{ item.install_dir }} state=directory owner={{ item.user }} group={{ item.user }} recurse=yes - with_items: '{{ springboot_apps }}' + loop: '{{ springboot_apps }}' when: item.user is defined - name: Create the log directory of the springboot app {{ item.name }} file: dest={{ item.log_dir }} state=directory owner={{ item.user }} group={{ item.user }} recurse=yes - with_items: '{{ springboot_apps }}' + loop: '{{ springboot_apps }}' when: item.user is defined tags: [ 'springboot', 'springboot_user' ]