evolinux-base: configure bashrc for all users
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2598|9|2589|8|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/296//ansiblelint">Evolix » ansible-roles » unstable #296</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
William Hirigoyen 2023-07-17 17:18:55 +02:00
parent 7133783695
commit 67f0fa5942
3 changed files with 18 additions and 0 deletions

View file

@ -26,6 +26,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* dovecot: add Munin plugins dovecot1 and dovecot_stats (patched)
* fail2ban: add default variable fail2ban_dbpurgeage_default
* userlogrotate: add a userlogpurge script disabled by default
* evolinux-base: configure bashrc for all users
### Changed

View file

@ -0,0 +1,14 @@
---
- name: "Customize common bashrc"
ansible.builtin.lineinfile:
dest: /etc/bash.bashrc
line: "{{ item }}"
create: yes
state: present
loop:
- "export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoreboth,erasedups"
- "export HISTSIZE=65535"
- "export HISTTIMEFORMAT=\"%c : \""
- "shopt -s histappend"
- "PROMPT_COMMAND=\"history -a;${PROMPT_COMMAND}\""

View file

@ -74,6 +74,9 @@
# name: evolix/evolinux-users
# when: evolinux_users_include
- name: Bash configuration
ansible.builtin.import_tasks: bash.yml
- name: Root user configuration
ansible.builtin.import_tasks: root.yml
when: evolinux_root_include | bool