diff options
Diffstat (limited to 'roles/common/tasks/main.yml')
-rw-r--r-- | roles/common/tasks/main.yml | 15 |
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 }}" |