diff --git a/tasks/main.yml b/tasks/main.yml index 34be836..6a760fc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,9 +11,9 @@ owner: "{{ ansible_user }}" mode: "0644" -- name: Ensure tmux is used as default shell +- name: Auto-start tmux for interactive shells ansible.builtin.blockinfile: - path: /root/.bashrc + path: "{{ item }}" block: | case $- in *i*) @@ -25,3 +25,6 @@ ;; esac marker: "# {mark} ANSIBLE TMUX CONFIG" + loop: + - /root/.bashrc + - /root/.zshrc