50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
|
---
|
||
|
- name: install sudo configuration file
|
||
|
template:
|
||
|
src: etc/sudoers.j2
|
||
|
dest: /etc/sudoers
|
||
|
mode: 0440
|
||
|
|
||
|
- name: install global bashrc configuration file
|
||
|
template:
|
||
|
src: etc/bash.bashrc.j2
|
||
|
dest: /etc/bash.bashrc
|
||
|
mode: 0644
|
||
|
|
||
|
- name: install general profile.d script files
|
||
|
template:
|
||
|
src: "{{ item }}.j2"
|
||
|
dest: "/{{ item }}"
|
||
|
mode: 0755
|
||
|
loop:
|
||
|
- etc/profile.d/w.sh
|
||
|
|
||
|
- name: remove default motd configuration file
|
||
|
file:
|
||
|
dest: /etc/motd
|
||
|
state: absent
|
||
|
|
||
|
- name: install motd handler script file
|
||
|
template:
|
||
|
src: usr/local/sbin/update-motd.sh.j2
|
||
|
dest: /usr/local/sbin/update-motd.sh
|
||
|
mode: 0755
|
||
|
|
||
|
- name: install motd update cron file
|
||
|
template:
|
||
|
src: etc/cron.d/update-motd.j2
|
||
|
dest: /etc/cron.d/update-motd
|
||
|
mode: 0644
|
||
|
|
||
|
- name: install global htoprc configuration file
|
||
|
template:
|
||
|
src: etc/htoprc.j2
|
||
|
dest: /etc/htoprc
|
||
|
mode: 0644
|
||
|
|
||
|
- name: add additional user groups
|
||
|
group:
|
||
|
name: "{{ item.name }}"
|
||
|
gid: "{{ item.gid }}"
|
||
|
loop: "{{ add_groups }}"
|