Add restart alias.
This commit is contained in:
parent
358012ca19
commit
2497a648bf
@ -57,3 +57,11 @@
|
||||
- regexp: '^(export )?SUDO_EDITOR='
|
||||
line: 'export SUDO_EDITOR=vim'
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Add functional alias to restart a service and show the log
|
||||
blockinfile:
|
||||
path: /root/.bashrc
|
||||
block: |
|
||||
pheonix() {
|
||||
systemctl restart $1;journalctl -fu $1
|
||||
}
|
Loading…
Reference in New Issue
Block a user