Moves provisioning of tmux.conf to users, i.e. each user will have a tmux.conf

This commit is contained in:
Jan Beilicke 2020-04-01 12:57:56 +02:00
parent 63c00e2870
commit 66acbf2930
2 changed files with 14 additions and 3 deletions

View file

@ -1,14 +1,23 @@
--- ---
# tasks file for common # tasks file for common
- name: Firewall
become: true
import_role:
name: geerlingguy.firewall
tags: firewall
- include: locales-debian.yml - include: locales-debian.yml
become: true become: true
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
- include: users.yml - include: users.yml
become: true become: true
- include: python-debian.yml - include: python-debian.yml
become: true become: true
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
- include: ansible-debian.yml - include: ansible-debian.yml
become: true become: true
@ -22,5 +31,3 @@
- htop - htop
- tmux - tmux
become: yes become: yes
- name: Copy tmux config
copy: src=files/tmux.conf dest=/home/{{ ansible_user }}/.tmux.conf mode=0644

View file

@ -47,3 +47,7 @@
groups: wheel groups: wheel
append: yes append: yes
with_items: "{{ sudoers }}" with_items: "{{ sudoers }}"
- name: Copy tmux config
copy: src=files/tmux.conf dest=/home/{{ item }}/.tmux.conf mode=0644
with_items: "{{ users }}"