-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create bash aliases using new 'misc' role
- Loading branch information
1 parent
2745753
commit 8e67ec5
Showing
7 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cli_packages: [] | ||
gui_packages: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
alias l="ls -a --color=auto" | ||
alias ll="ls -lahv --time-style=long-iso --color=auto" | ||
alias ..="cd .." | ||
alias ...="cd ../.." | ||
alias ....="cd ../../.." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- include: misc-root.yml | ||
tags: root | ||
|
||
- include: misc-user.yml | ||
tags: user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: install CLI packages | ||
dnf: state=present name={{ item }} | ||
with_items: "{{ cli_packages }}" | ||
become: true | ||
tags: | ||
- root | ||
- cli | ||
|
||
- name: install GUI packages | ||
dnf: state=present name={{ item }} | ||
with_items: "{{ gui_packages }}" | ||
become: true | ||
tags: | ||
- root | ||
- gui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: create .bashrc.d directory | ||
file: | ||
path: "{{ ansible_env.HOME }}/.bashrc.d" | ||
state: directory | ||
|
||
- name: copy the file with aliases | ||
copy: | ||
src: files/ansible-aliases.sh | ||
dest: "{{ ansible_env.HOME }}/.bashrc.d/" | ||
|
||
- name: ensure the all files in .bashrc.d get sourced | ||
lineinfile: | ||
dest: "{{ ansible_env.HOME }}/.bashrc" | ||
line: "for f in ~/.bashrc.d/*; do source $f; done" |