Skip to content

Instantly share code, notes, and snippets.

@leberblock
Last active March 22, 2024 08:28
Show Gist options
  • Save leberblock/e22595cf8217edbfa2bd0033ab91de75 to your computer and use it in GitHub Desktop.
Save leberblock/e22595cf8217edbfa2bd0033ab91de75 to your computer and use it in GitHub Desktop.
os - create global aliases
-> where to place?
/etc/profile.d/aliases.sh
-> ansible example
- name: Ensure aliases are present in /etc/profile.d/aliases.sh
lineinfile:
path: /etc/profile.d/aliases.sh
line: "{{ item }}"
loop:
- "alias sudi='sudo -i'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment