base: Store date and time for bash history on RedHat hosts
This commit is contained in:
parent
a0031b05ac
commit
675d7af7a4
1 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,14 @@
|
||||||
dest: /etc/GREP_COLORS
|
dest: /etc/GREP_COLORS
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: store date and time for bash history
|
||||||
|
copy:
|
||||||
|
dest: /etc/profile.d/history.sh
|
||||||
|
content: 'export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "'
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: cron job for downloading yum updates
|
- name: cron job for downloading yum updates
|
||||||
cron:
|
cron:
|
||||||
name: yum-downloadonly
|
name: yum-downloadonly
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue