summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2023-11-04 15:42:53 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2023-11-04 15:42:53 +0100
commitd43b01ea1d67fbcfb29491db2207206ce4141c11 (patch)
tree0b29b1cc2b6b07bc72e1b6c03f9050d02879d884
parent49ac6e43271e26490909e7f137ad68a716b4392c (diff)
downloadplaybooks-ansible-d43b01ea1d67fbcfb29491db2207206ce4141c11.tar.gz
playbooks-ansible-d43b01ea1d67fbcfb29491db2207206ce4141c11.tar.xz
playbooks-ansible-d43b01ea1d67fbcfb29491db2207206ce4141c11.zip
Fix wrong path for /etc/skel directory
-rw-r--r--roles/common/tasks/rc.yml12
-rw-r--r--roles/common/tasks/xmppc.yml13
2 files changed, 19 insertions, 6 deletions
diff --git a/roles/common/tasks/rc.yml b/roles/common/tasks/rc.yml
index 0fd1e23..952d56b 100644
--- a/roles/common/tasks/rc.yml
+++ b/roles/common/tasks/rc.yml
@@ -2,6 +2,8 @@
copy:
src: "{{ item.name }}"
dest: "/root/{{ item.dest }}"
+ owner: root
+ group: root
mode: 0644
loop:
- { name: 'bashrc', dest: '.bashrc' }
@@ -13,6 +15,8 @@
copy:
src: "{{ item.name }}"
dest: "/etc/skel/{{ item.dest }}"
+ owner: root
+ group: root
mode: 0644
loop:
- { name: 'bashrc', dest: '.bashrc' }
@@ -20,6 +24,12 @@
- { name: 'zshrc', dest: '.zshrc' }
- { name: 'tmux.conf', dest: '.tmux.conf' }
+- name: Création répertoire .config
+ file:
+ path: /etc/skel/.config
+ state: directory
+ mode: 0700
+
- name: Création répertoire profanity
file:
path: /etc/skel/.config/profanity
@@ -30,4 +40,6 @@
copy:
src: profrc
dest: /etc/skel/.config/profanity/profrc
+ owner: root
+ group: root
mode: 0600
diff --git a/roles/common/tasks/xmppc.yml b/roles/common/tasks/xmppc.yml
index a41591c..de3f234 100644
--- a/roles/common/tasks/xmppc.yml
+++ b/roles/common/tasks/xmppc.yml
@@ -4,20 +4,21 @@
state: directory
mode: 0700
-- name: Création du répertoire .config pour /etc/skels
+- name: Suppression mauvais répertoire skel
file:
- path: /etc/skels/.config
- state: directory
- mode: 0700
+ path: /etc/skels
+ state: absent
-- name: Configuration de xmppc pour root et skels
+- name: Configuration de xmppc pour root et skel
template:
src: skels_xmppc.conf.j2
dest: "{{ item }}"
+ owner: root
+ group: root
mode: 0644
loop:
- /root/.config/xmppc.conf
- - /etc/skels/.config/xmppc.conf
+ - /etc/skel/.config/xmppc.conf
tags: keys
- name: Installation du script IM systemd