minor changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user