[TIDY] Move to ansible_facts dict instead of injected variables
This commit is contained in:
parent
9f0226856e
commit
36455b7f76
18 changed files with 69 additions and 69 deletions
|
|
@ -10,7 +10,7 @@ bind r source-file ~/.tmux.conf
|
|||
# shorter timing
|
||||
set -g repeat-time 200
|
||||
|
||||
{% if not (ansible_distribution == "CentOS" and ansible_distribution_major_version|int <= 7) %}
|
||||
{% if not (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version']|int <= 7) %}
|
||||
# configure mouse
|
||||
setw -g mouse on
|
||||
{% endif %}
|
||||
|
|
@ -29,7 +29,7 @@ setw -g pane-base-index 1
|
|||
# status bar
|
||||
#set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)'
|
||||
set-window-option -g status-left " #S "
|
||||
{% if ansible_distribution == "CentOS" and ansible_distribution_major_version|int <= 7 %}
|
||||
{% if ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version']|int <= 7 %}
|
||||
set-window-option -g status-left-fg black
|
||||
set-window-option -g status-left-bg white
|
||||
{% else %}
|
||||
|
|
@ -37,7 +37,7 @@ set-window-option -g status-left-style fg=black,bg=white
|
|||
{% endif %}
|
||||
|
||||
set-window-option -g status-right " %H:%M %Y-%m-%d | #(hostname) "
|
||||
{% if ansible_distribution == "CentOS" and ansible_distribution_major_version|int <= 7 %}
|
||||
{% if ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version']|int <= 7 %}
|
||||
set-window-option -g status-right-fg black
|
||||
set-window-option -g status-right-bg white
|
||||
{% else %}
|
||||
|
|
@ -47,7 +47,7 @@ set-window-option -g status-right-style fg=black,bg=white
|
|||
set-window-option -g window-status-format " #I: #W "
|
||||
|
||||
set-window-option -g window-status-current-format " #I: #W "
|
||||
{% if ansible_distribution == "CentOS" and ansible_distribution_major_version|int <= 7 %}
|
||||
{% if ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version']|int <= 7 %}
|
||||
set-window-option -g window-status-current-fg green
|
||||
set-window-option -g window-status-current-bg black
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue