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'