aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-19 14:13:28 +0100
committerbinary <me@rgoncalves.se>2020-11-19 14:13:28 +0100
commit75b32e60aad2bc2d8d1746be1dbc6d6bf422592e (patch)
treea15f397fbbbf2de579786ed30214411c62dbab35 /roles/common/tasks/main.yml
parent97f201deb22f11acc22dda5368c365701b5caa5f (diff)
downloadinfrastructure-75b32e60aad2bc2d8d1746be1dbc6d6bf422592e.tar.gz
Move roles functionnality in sub-roles
Diffstat (limited to 'roles/common/tasks/main.yml')
-rw-r--r--roles/common/tasks/main.yml15
1 files changed, 8 insertions, 7 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 6e816c7..5dca08d 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -27,13 +27,14 @@
group: "{{ group_root }}"
mode: 0644
+- name: copy motd configuration file
+ template:
+ src: motd.j2
+ dest: /etc/motd
+ owner: root
+ group: "{{ group_root }}"
+ mode: 0644
+
- name: synchronize host hostname with config hostname
hostname: name="{{ inventory_hostname }}"
-- name: retrieve all users
- shell: awk -F ":" '{ if($3 == 0 || $3 > 999 && $3 < 16000) { print $1 }}' /etc/passwd
- register: valid_users_shell
-
-- name: change shell to zsh for all valid users
- user: name="{{ item }}" shell="{{ path_zsh }}"
- loop: "{{ valid_users_shell.stdout_lines }}"
remember that computers suck.