Skip to content

Commit

Permalink
Improving oh_my_bash install location.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Nov 17, 2023
1 parent a5f4a66 commit 918ce20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions roles/bash/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
ansible.builtin.file:
path: /tmp/oh-my-bash.install.sh
state: absent

- name: Bash | Cleanup oh-my-bash install script
ansible.builtin.file:
path: /{{ ansible_user_dir }}/oh-my-bash.install.sh
state: absent
7 changes: 4 additions & 3 deletions roles/bash/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
- name: "Bash | Download oh-my-bash Install Script"
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh
dest: /tmp/oh-my-bash.install.sh
dest: /{{ ansible_user_dir }}/oh-my-bash.install.sh
force: true
mode: 755
notify:
- "Bash | Cleanup oh-my-bash install script"

- name: "Bash | Run the install script"
ansible.builtin.script:
cmd: /tmp/oh-my-bash.install.sh

cmd: /{{ ansible_user_dir }}/oh-my-bash.install.sh

- name: "Bash | Copy .bashrc"
ansible.builtin.copy:
Expand Down

0 comments on commit 918ce20

Please sign in to comment.