-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplaybook-mc.yml
28 lines (27 loc) · 1.28 KB
/
playbook-mc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
- hosts: all
vars:
ini_true: true
ini_false: false
tasks:
- name: check if ini exist
stat: path=~/.config/mc/ini
register: mc_ini
- name: tune mc with your favourite settings
when: mc_ini.stat.exists == True
ini_file: dest=~/.config/mc/ini no_extra_spaces=yes
section={{ item.section }}
option={{ item.option }}
value={{ item.value }}
with_items:
- { section: Midnight-Commander, option: mcview_remember_file_position, value: 1 }
- { section: Midnight-Commander, option: auto_save_setup_panels, value: 1 }
- { section: Midnight-Commander, option: classic_progressbar, value: 0 }
- { section: Midnight-Commander, option: use_internal_view, value: 1 }
- { section: Midnight-Commander, option: use_internal_edit, value: 0 }
- { section: Midnight-Commander, option: confirm_delete, value: 1 }
- { section: Midnight-Commander, option: confirm_exit, value: 0 }
- { section: Layout, option: message_visible, value: 0 }
- { section: Layout, option: menubar_visible, value: 1 }
- { section: Panels, option: navigate_with_arrows, value: "{{ ini_true | bool | lower }}" }
- { section: Panels, option: fast_reload, value: "{{ ini_true | bool | lower }}" }