diff --git a/playbooks/roles/filebeat/tasks/main.yml b/playbooks/roles/filebeat/tasks/main.yml index 304590e..574871d 100644 --- a/playbooks/roles/filebeat/tasks/main.yml +++ b/playbooks/roles/filebeat/tasks/main.yml @@ -1,12 +1,4 @@ --- -- name: Make Work directory - ansible.builtin.file: - path: "{{ work_path }}" - owner: filebeat - group: filebeat - state: directory - mode: '0755' - - name: Create Filebeat Group ansible.builtin.group: name: filebeat @@ -21,6 +13,14 @@ state: present uid: 1802 +- name: Make Work directory + ansible.builtin.file: + path: "{{ work_path }}" + owner: filebeat + group: filebeat + state: directory + mode: '0755' + - name: Install Filebeat ansible.builtin.unarchive: src: "{{ filebeat_download_url }}"