Skip to content

Commit

Permalink
Merge pull request #65 from TechDufus/ohmybash_fix
Browse files Browse the repository at this point in the history
Improving oh_my_bash install location.
  • Loading branch information
TechDufus authored Nov 17, 2023
2 parents 80793a3 + 918ce20 commit ed50720
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 ed50720

Please sign in to comment.