ansible: fix tmux role syntax for consistency
This commit is contained in:
parent
d23b76dcf7
commit
e2181333f5
1 changed files with 21 additions and 12 deletions
|
@ -1,23 +1,32 @@
|
||||||
- name: Install tmux (Debian)
|
- name: Install tmux with apt
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
become: yes
|
become: yes
|
||||||
apt: name=tmux state=latest update_cache=yes
|
apt:
|
||||||
|
name: tmux
|
||||||
|
state: latest
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: Install tmux (macOS)
|
|
||||||
|
- name: Install tmux with homebrew
|
||||||
when: ansible_os_family == "Darwin"
|
when: ansible_os_family == "Darwin"
|
||||||
homebrew: name=tmux state=latest
|
homebrew:
|
||||||
|
name: tmux
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
|
||||||
- name: Create the tmux config directory
|
- name: Create the tmux config directory
|
||||||
file:
|
file:
|
||||||
path: ~/.config/tmux
|
path: ~/.config/tmux
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
|
||||||
- name: Deploy tmux config
|
- name: Deploy tmux config
|
||||||
file:
|
file:
|
||||||
src: "{{ role_path }}/files/{{ item }}"
|
src: "{{ role_path }}/files/{{ item }}"
|
||||||
dest: "~/.config/tmux/{{ item }}"
|
dest: ~/.config/tmux/{{ item }}
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: yes
|
||||||
loop:
|
loop:
|
||||||
- tmux.conf
|
- tmux.conf
|
||||||
- tmux-colors.conf
|
- tmux-colors.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue