mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
confiure ranger
This commit is contained in:
parent
661b0131ee
commit
5caa067a28
4 changed files with 31 additions and 2 deletions
|
@ -13,3 +13,6 @@ allow_own_root_bashrc: true
|
|||
# enable version check for this role
|
||||
# (highly recomended for stupid users)
|
||||
submodules_versioncheck: true
|
||||
|
||||
# show hidden files in ranger
|
||||
ranger_hidden_files: true
|
||||
|
|
|
@ -97,4 +97,27 @@
|
|||
file:
|
||||
state: absent
|
||||
path: "/root/.bashrc"
|
||||
when: not allow_own_root_bashrc|bool
|
||||
when: not allow_own_root_bashrc | bool
|
||||
|
||||
- name: create .config/ranger/ directory
|
||||
become: true
|
||||
file:
|
||||
path: "/home/{{ item }}/.config/ranger"
|
||||
state: directory
|
||||
recurse: yes
|
||||
owner: "{{ item }}"
|
||||
group: "{{ item }}"
|
||||
with_items: "{{ accounts }}"
|
||||
when: ranger_hidden_files | bool
|
||||
|
||||
- name: create .config/ranger/rc.conf file
|
||||
become: true
|
||||
template:
|
||||
src: templates/ranger_rc.conf.j2
|
||||
dest: "/home/{{ item }}/.config/ranger/rc.conf"
|
||||
owner: "{{ item }}"
|
||||
group: "{{ item }}"
|
||||
with_items: "{{ accounts }}"
|
||||
when: ranger_hidden_files | bool
|
||||
|
||||
|
||||
|
|
3
templates/ranger_rc.conf.j2
Normal file
3
templates/ranger_rc.conf.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
{% if ranger_hidden_files | bool %}set show_hidden true{% endif %}
|
|
@ -9,5 +9,5 @@ bash:
|
|||
keyboard: '$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
|
||||
|
||||
|
||||
playbook_version_number: 104 # integer without dots
|
||||
playbook_version_number: 105 # integer without dots
|
||||
playbook_version_path: '/etc/ansible-version/role_dotfiles_chaos-bodensee_github.version'
|
||||
|
|
Loading…
Reference in a new issue