The role installs ~/.bash_aliases
and sets up basic extensible nftables aliases.
To extend aliases simply put Bash aliases files to ~/.config
directory, the file naming convention is name.bash_aliases
. Aliases are loaded automatically next Bash execution.
alias myip='curl ipinfo.io/ip'
Add a role dependency in meta
file:
---
dependencies:
- role: xebis.ansible.bash # Expects extensible Bash aliases in place
Create alias file, for example role.bash_aliases
.
Add Ansible task to copy files to ~/.config
, for example:
- name: Copy role Bash aliases
ansible.builtin.copy:
src: role.bash_aliases
dest: ~/.config/role.bash_aliases
mode: u=rw,g=r,o=r