minor changes
This commit is contained in:
parent
fb6e063d83
commit
0023ae58bc
@ -1,5 +1,5 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
INVENTORY = ~/inventory
|
INVENTORY = ../inventory
|
||||||
pipelining = True
|
pipelining = True
|
||||||
|
|
||||||
#strategy = free
|
#strategy = free
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- { role: packages, become: true}
|
- { role: packages, become: true, retries: 3, delay: 60}
|
||||||
- { role: ssh, become: true}
|
- { role: ssh, become: true}
|
||||||
- configs
|
- configs
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ alias gupv='git pull --rebase -v'
|
|||||||
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
|
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 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"
|
alias vim="vim -p"
|
||||||
|
|
||||||
export PS1='\e[0;35m\t \e[0;32m\u@\h:\w\e[m\n\$ '
|
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[A": history-search-backward'
|
||||||
bind '"\e[B": history-search-forward'
|
bind '"\e[B": history-search-forward'
|
||||||
|
|
||||||
|
export EDITOR=vim
|
||||||
|
@ -46,12 +46,16 @@
|
|||||||
- name: Change hostname
|
- name: Change hostname
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
- name: Do not show news on login
|
- name: Do not show news on login
|
||||||
|
ignore_errors: true
|
||||||
file:
|
file:
|
||||||
path: /etc/update-motd.d/50-motd-news
|
path: /etc/update-motd.d/50-motd-news
|
||||||
mode: 644
|
mode: 644
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
- name: Do not show help on login
|
- name: Do not show help on login
|
||||||
|
ignore_errors: true
|
||||||
file:
|
file:
|
||||||
path: /etc/update-motd.d/10-help-text
|
path: /etc/update-motd.d/10-help-text
|
||||||
mode: 644
|
mode: 644
|
||||||
@ -62,12 +66,14 @@
|
|||||||
path: "{{ ansible_user_dir }}/.oh-my-bash"
|
path: "{{ ansible_user_dir }}/.oh-my-bash"
|
||||||
register: omb_flag_root
|
register: omb_flag_root
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: 'OMB is not installed for root'
|
|
||||||
when: not omb_flag_root.stat.exists
|
|
||||||
|
|
||||||
- name: Put simple bashrc config
|
- name: Put simple bashrc config
|
||||||
template:
|
template:
|
||||||
src: files/bashrc
|
src: files/bashrc
|
||||||
dest: "/root/.bashrc"
|
dest: "/root/.bashrc"
|
||||||
when: not omb_flag_root.stat.exists
|
when: not omb_flag_root.stat.exists
|
||||||
|
|
||||||
|
- name: Set timezone to Europe/Moscow
|
||||||
|
community.general.timezone:
|
||||||
|
name: Europe/Moscow
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Install Debian packages
|
- name: Install Debian packages
|
||||||
apt:
|
apt:
|
||||||
name: ['mc', 'htop', 'vim', 'neovim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree', 'figlet']
|
name: ['mc', 'htop', 'vim', 'neovim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree', 'figlet', 'ufw']
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
lock_timeout: 300
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
|
|
||||||
@ -11,12 +12,14 @@
|
|||||||
apt:
|
apt:
|
||||||
name: ['cloud-init', 'modemmanager', 'snapd', 'needrestart']
|
name: ['cloud-init', 'modemmanager', 'snapd', 'needrestart']
|
||||||
state: absent
|
state: absent
|
||||||
|
lock_timeout: 300
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
- name: Remove orphans
|
- name: Remove orphans
|
||||||
apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
purge: yes
|
purge: yes
|
||||||
|
lock_timeout: 300
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
- name: Less modules in initramfs
|
- name: Less modules in initramfs
|
||||||
|
Loading…
Reference in New Issue
Block a user