change items for vars in bashrc task
This commit is contained in:
parent
d69c7e91f5
commit
0d2b85df1f
|
@ -55,15 +55,15 @@
|
|||
state: present
|
||||
with_items:
|
||||
- regexp: "^# export LS_OPTIONS"
|
||||
line: "export LS_OPTIONS='--color=auto'"
|
||||
line: "{{ export_LS_OPTIONS }}"
|
||||
- regexp: "^# eval "$(dircolors)""
|
||||
line: "eval "$(dircolors)""
|
||||
line: "{{ eval_dircolors }}"
|
||||
- regexp: "^# alias ls='ls $LS_OPTIONS'"
|
||||
line: "alias ls='ls $LS_OPTIONS'"
|
||||
line: "{{ alias_ls }}"
|
||||
- regexp: "^# alias ll='ls $LS_OPTIONS -l'"
|
||||
line: "alias ll='ls $LS_OPTIONS -l'"
|
||||
- regexp: "# alias l='ls $LS_OPTIONS -lA'"
|
||||
line: "alias l='ls $LS_OPTIONS -lA'"
|
||||
line: "{{ alias_ll }}"
|
||||
- regexp: "# alias la='ls $LS_OPTIONS -la'"
|
||||
line: "{{ alias_la }}"
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# step2 - add block lines
|
||||
- name: add block lines
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
---
|
||||
path_sshd_config_file: /etc/ssh/sshd_config
|
||||
path_bashrc_root: /root/.bashrc
|
||||
path_bashrc_root: /root/.bashrc
|
||||
export_LS_OPTIONS: "export LS_OPTIONS='--color=auto'"
|
||||
eval_dircolors: "eval "$(dircolors)""
|
||||
alias_ls: "alias ls='ls $LS_OPTIONS'"
|
||||
alias_ll: "alias ll='ls $LS_OPTIONS -l'"
|
||||
alias_la: "alias la='ls $LS_OPTIONS -la'"
|
||||
|
|
Loading…
Reference in New Issue