From 75b32e60aad2bc2d8d1746be1dbc6d6bf422592e Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 19 Nov 2020 14:13:28 +0100 Subject: Move roles functionnality in sub-roles --- roles/common/tasks/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'roles/common/tasks/main.yml') 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 }}" -- cgit v1.2.3