Skip to content

Commit

Permalink
add history timestamps for user terminal history (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa authored Jan 22, 2024
1 parent 8608fb5 commit f68ecd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure/server-setup/tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
when: item.state == 'present'
with_items: '{{ users }}'

- name: Ensure history has timestamps
lineinfile:
path: /home/{{ item.name }}/.bashrc
line: 'export HISTTIMEFORMAT="%d/%m/%y %T "'
create: yes
when: item.state == 'present'
with_items: '{{ users }}'

- name: Check if Docker group exists
command: getent group docker
register: docker_group
Expand Down

0 comments on commit f68ecd6

Please sign in to comment.