From a39fb817e87d053f82e06305b4a737d40c483ee3 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 30 Sep 2018 21:25:28 +0200 Subject: users: root: let each user have their own root bashrc --- roles/users/tasks/root.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'roles/users/tasks') diff --git a/roles/users/tasks/root.yml b/roles/users/tasks/root.yml index e5b3b45..8ac84e7 100644 --- a/roles/users/tasks/root.yml +++ b/roles/users/tasks/root.yml @@ -1,18 +1,13 @@ --- -- name: root .bash_profile +- name: root - dotfiles copy: - dest: '/root/.bash_profile' - src: root/bash_profile.sh - owner: root - group: root - mode: 0644 - -- name: root .bashrc - template: - dest: '/root/.bashrc' - src: root/bashrc.sh.j2 + dest: '~root/.{{ item }}' + src: 'root/{{ item }}' owner: root group: root mode: 0644 + with_items: + - bash_profile + - bashrc # vim: set ts=2 sw=2 et: -- cgit v1.2.1