minor changes

This commit is contained in:
2023-09-16 08:41:35 +03:00
parent fb6e063d83
commit 0023ae58bc
5 changed files with 18 additions and 8 deletions

View File

@@ -283,7 +283,7 @@ alias gupv='git pull --rebase -v'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"'
alias apt="sudo apt"
#alias apt="sudo apt"
alias vim="vim -p"
export PS1='\e[0;35m\t \e[0;32m\u@\h:\w\e[m\n\$ '
@@ -293,3 +293,4 @@ figlet `hostname`
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
export EDITOR=vim

View File

@@ -46,12 +46,16 @@
- name: Change hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
- name: Do not show news on login
ignore_errors: true
file:
path: /etc/update-motd.d/50-motd-news
mode: 644
when: ansible_facts['os_family'] == "Debian"
- name: Do not show help on login
ignore_errors: true
file:
path: /etc/update-motd.d/10-help-text
mode: 644
@@ -62,12 +66,14 @@
path: "{{ ansible_user_dir }}/.oh-my-bash"
register: omb_flag_root
- debug:
msg: 'OMB is not installed for root'
when: not omb_flag_root.stat.exists
- name: Put simple bashrc config
template:
src: files/bashrc
dest: "/root/.bashrc"
when: not omb_flag_root.stat.exists
- name: Set timezone to Europe/Moscow
community.general.timezone:
name: Europe/Moscow