Skip to content

Commit

Permalink
Fixing an issue where bash completion does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjpaz committed Jan 28, 2019
1 parent 2c0c189 commit 86e9dad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/bashrc/fix-bash-shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! grep '/usr/local/bin/bash' /etc/shells; then
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
chsh -s /usr/local/bin/bash;
fi;
11 changes: 11 additions & 0 deletions playbooks/bashrc/tasks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
- name: Install latest bash
tags: ['bashrc','test1']
package:
name: bash

- name: Fix the user shell to use the latest bash (this may fail)
tags: ['bashrc','test1']
ignore_errors: yes
shell: "{{ playbook_dir }}/{{ item }}/fix-bash-shell.sh"


- tags: ['bashrc']
set_fact:
task_dir: "{{ playbook_dir }}/{{ item }}"
Expand Down

0 comments on commit 86e9dad

Please sign in to comment.