[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sysadmin/kde-ansible] roles/kde-backup/tasks: Create home directory for gohma home accounts manuall
From:       Nicolás_Alvarez <null () kde ! org>
Date:       2018-07-22 5:08:18
Message-ID: E1fh6bS-00024E-B3 () code ! kde ! org
[Download RAW message or body]

Git commit fc401016a60b5cf28d3c5cfc38caccfbe838c322 by Nicol=C3=A1s Alvarez.
Committed on 22/07/2018 at 05:07.
Pushed by nalvarez into branch 'master'.

Create home directory for gohma home accounts manually

The 'user' module creates the home directory owned by the user, and with
default files like .profile and .bashrc. We don't want those files, and
we want it owned by root.

Disable automatic creation of the home dir, and create it ourselves owned
by root:root with a separate task.

M  +11   -0    roles/kde-backup/tasks/main.yml

https://commits.kde.org/sysadmin/kde-ansible/fc401016a60b5cf28d3c5cfc38cacc=
fbe838c322

diff --git a/roles/kde-backup/tasks/main.yml b/roles/kde-backup/tasks/main.=
yml
index 8d5d149..c9ca665 100644
--- a/roles/kde-backup/tasks/main.yml
+++ b/roles/kde-backup/tasks/main.yml
@@ -41,6 +41,17 @@
   user:
     name: "{{gohma_backup_user}}"
     home: "/home/{{gohma_backup_home}}/"
+    createhome: no
+  when: gohma_backup_user is defined
+
+- name: create gohma home directory
+  delegate_to: gohma.kde.org
+  file:
+    state: directory
+    dest: "/home/{{gohma_backup_home}}"
+    owner: root
+    group: root
+    mode: 0755
   when: gohma_backup_user is defined
 =

 - name: create .ssh in gohma account
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic