From 97788b9106ec79866e38537a058eb839960abbef Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 7 Jan 2021 19:28:02 +0100 Subject: [PATCH] Fix F**ing RHEL --- templates/bash.bashrc | 9 +++++++++ templates/bashrc | 8 ++++++++ vars/main.yml | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/templates/bash.bashrc b/templates/bash.bashrc index 3c6497b..6524b14 100644 --- a/templates/bash.bashrc +++ b/templates/bash.bashrc @@ -43,8 +43,17 @@ fi HISTCONTROL={{ dotfiles__history_control }} shopt -s histappend +{% if ansible_os_family == 'Redhat' %} +# HISTSIZE={{ dotfiles__history_size }} +# HISTFILESIZE={{ dotfiles__history_file_size }} +{% elif ansible_distribution == "CentOS" %} +# HISTSIZE={{ dotfiles__history_size }} +# HISTFILESIZE={{ dotfiles__history_file_size }} +{% else %} HISTSIZE={{ dotfiles__history_size }} HISTFILESIZE={{ dotfiles__history_file_size }} +{% endif %} + {% for _row in dotfiles__additional_bashrc_lines | default() %} {{ _row }} diff --git a/templates/bashrc b/templates/bashrc index da52476..1959ef7 100644 --- a/templates/bashrc +++ b/templates/bashrc @@ -28,8 +28,16 @@ fi # hostory controll HISTCONTROL={{ dotfiles__history_control }} shopt -s histappend +{% if ansible_os_family == 'Redhat' %} +# HISTSIZE={{ dotfiles__history_size }} +# HISTFILESIZE={{ dotfiles__history_file_size }} +{% elif ansible_distribution == "CentOS" %} +# HISTSIZE={{ dotfiles__history_size }} +# HISTFILESIZE={{ dotfiles__history_file_size }} +{% else %} HISTSIZE={{ dotfiles__history_size }} HISTFILESIZE={{ dotfiles__history_file_size }} +{% endif %} {% for _row in dotfiles__additional_user_bashrc_lines | default() %} {{ _row }} diff --git a/vars/main.yml b/vars/main.yml index 71a0670..b104171 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,2 @@ -playbook_version_number: 2063 # should be over ninethousand +playbook_version_number: 2064 # should be over ninethousand playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version'