clean: Remove end_host && trailing whitespaces
This commit is contained in:
parent
de2d2db387
commit
30fd1328a0
1 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: List installable sh scripts
|
- name: List installable sh scripts
|
||||||
become: false
|
become: false
|
||||||
local_action:
|
local_action:
|
||||||
module: ansible.builtin.shell
|
module: ansible.builtin.shell
|
||||||
cmd: ls -1 "{{role_path}}/files/bashrc.d/"*.sh
|
cmd: ls -1 "{{role_path}}/files/bashrc.d/"*.sh
|
||||||
register: bash_scripts
|
register: bash_scripts
|
||||||
|
@ -24,23 +24,23 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item[0]}}"
|
become_user: "{{item[0]}}"
|
||||||
with_nested:
|
with_nested:
|
||||||
- "{{bash_users}}"
|
- "{{bash_users}}"
|
||||||
- ['bashrc', 'bash_profile', 'bash_aliases']
|
- ['bashrc', 'bash_profile', 'bash_aliases']
|
||||||
|
|
||||||
- meta: end_host
|
# - meta: end_host
|
||||||
|
|
||||||
- name: Create bashrc.d directory
|
- name: Create bashrc.d directory
|
||||||
file:
|
file:
|
||||||
path: ~/.bashrc.d
|
path: ~/.bashrc.d
|
||||||
state: directory
|
state: directory
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: "{{bash_users}}"
|
with_items: "{{bash_users}}"
|
||||||
|
|
||||||
- name: Install bashrc.d files
|
- name: Install bashrc.d files
|
||||||
copy:
|
copy:
|
||||||
src: "{{item[1]}}"
|
src: "{{item[1]}}"
|
||||||
dest: "~/.bashrc.d/{{item[1]|basename}}"
|
dest: "~/.bashrc.d/{{item[1]|basename}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item[0]}}"
|
become_user: "{{item[0]}}"
|
||||||
|
@ -48,3 +48,4 @@
|
||||||
- "{{bash_users}}"
|
- "{{bash_users}}"
|
||||||
- "{{bash_scripts.stdout_lines}}"
|
- "{{bash_scripts.stdout_lines}}"
|
||||||
|
|
||||||
|
#
|
||||||
|
|
Loading…
Reference in a new issue