From 66acbf293072eba1719a5bd9dc870abc2eea2a55 Mon Sep 17 00:00:00 2001 From: Jan Beilicke Date: Wed, 1 Apr 2020 12:57:56 +0200 Subject: [PATCH] Moves provisioning of tmux.conf to users, i.e. each user will have a tmux.conf --- tasks/main.yml | 11 +++++++++-- tasks/users.yml | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e303d96..d5fc883 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,23 @@ --- # tasks file for common +- name: Firewall + become: true + import_role: + name: geerlingguy.firewall + tags: firewall + - include: locales-debian.yml become: true when: ansible_facts['os_family'] == 'Debian' + - include: users.yml become: true + - include: python-debian.yml become: true when: ansible_facts['os_family'] == 'Debian' + - include: ansible-debian.yml become: true @@ -22,5 +31,3 @@ - htop - tmux become: yes -- name: Copy tmux config - copy: src=files/tmux.conf dest=/home/{{ ansible_user }}/.tmux.conf mode=0644 \ No newline at end of file diff --git a/tasks/users.yml b/tasks/users.yml index 3241e75..ff45af8 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -46,4 +46,8 @@ name: "{{ item }}" groups: wheel append: yes - with_items: "{{ sudoers }}" \ No newline at end of file + with_items: "{{ sudoers }}" + +- name: Copy tmux config + copy: src=files/tmux.conf dest=/home/{{ item }}/.tmux.conf mode=0644 + with_items: "{{ users }}" \ No newline at end of file