From 30fd1328a0d3479399dcc30f528750623dc2b55f Mon Sep 17 00:00:00 2001 From: Glenn Date: Sun, 20 Nov 2022 15:29:11 +0100 Subject: [PATCH] clean: Remove end_host && trailing whitespaces --- tasks/task_scripts.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tasks/task_scripts.yml b/tasks/task_scripts.yml index 3dbc0be..dc2318d 100644 --- a/tasks/task_scripts.yml +++ b/tasks/task_scripts.yml @@ -1,7 +1,7 @@ --- - name: List installable sh scripts become: false - local_action: + local_action: module: ansible.builtin.shell cmd: ls -1 "{{role_path}}/files/bashrc.d/"*.sh register: bash_scripts @@ -24,23 +24,23 @@ mode: 0644 become: true become_user: "{{item[0]}}" - with_nested: + with_nested: - "{{bash_users}}" - ['bashrc', 'bash_profile', 'bash_aliases'] -- meta: end_host +# - meta: end_host - name: Create bashrc.d directory - file: - path: ~/.bashrc.d + file: + path: ~/.bashrc.d state: directory become: true become_user: "{{item}}" with_items: "{{bash_users}}" - name: Install bashrc.d files - copy: - src: "{{item[1]}}" + copy: + src: "{{item[1]}}" dest: "~/.bashrc.d/{{item[1]|basename}}" become: true become_user: "{{item[0]}}" @@ -48,3 +48,4 @@ - "{{bash_users}}" - "{{bash_scripts.stdout_lines}}" +#