Add restart alias.

This commit is contained in:
Brian Lee 2023-07-05 12:43:16 -07:00
parent 358012ca19
commit 2497a648bf

View File

@ -57,3 +57,11 @@
- regexp: '^(export )?SUDO_EDITOR=' - regexp: '^(export )?SUDO_EDITOR='
line: 'export SUDO_EDITOR=vim' line: 'export SUDO_EDITOR=vim'
when: ansible_os_family == 'RedHat' 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
}