aboutsummaryrefslogtreecommitdiffstats
path: root/roles/users/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-09-26 11:46:03 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-09-26 11:46:03 +0200
commitae254b596f6e12601e0f6b206d09b87e5a9b480d (patch)
tree7e4448756a033125230d85836473a1b927ef9687 /roles/users/tasks
parent58844e9c83370bad5e18483476cf9f43cab7c6ea (diff)
downloadlabitat-ansible-ae254b596f6e12601e0f6b206d09b87e5a9b480d.tar.gz
labitat-ansible-ae254b596f6e12601e0f6b206d09b87e5a9b480d.tar.xz
labitat-ansible-ae254b596f6e12601e0f6b206d09b87e5a9b480d.zip
users: merge root_env into this role
Diffstat (limited to 'roles/users/tasks')
-rw-r--r--roles/users/tasks/main.yml4
-rw-r--r--roles/users/tasks/root.yml18
2 files changed, 22 insertions, 0 deletions
diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml
index 2cc6cd1..8d4acfa 100644
--- a/roles/users/tasks/main.yml
+++ b/roles/users/tasks/main.yml
@@ -1,4 +1,8 @@
---
+- import_tasks: root.yml
+ tags:
+ - users
+ - root
- import_tasks: esmil.yml
tags:
- users
diff --git a/roles/users/tasks/root.yml b/roles/users/tasks/root.yml
new file mode 100644
index 0000000..e5b3b45
--- /dev/null
+++ b/roles/users/tasks/root.yml
@@ -0,0 +1,18 @@
+---
+- name: root .bash_profile
+ 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
+ owner: root
+ group: root
+ mode: 0644
+
+# vim: set ts=2 sw=2 et: