Changeset - 483065c6c24f
[Not reviewed]
0 1 0
Branko Majic (branko) - 7 years ago 2016-11-22 22:24:12
branko@majic.rs
MAR-67: Replace the stock root's .bashrc with skeleton one. Don't touch the file if it does not match default file shipped with distro.
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/common/tasks/main.yml
Show inline comments
 
@@ -34,6 +34,15 @@
 
    skel_bashrc: "/etc/skel/.bashrc"
 
    bashrc: "/etc/bash.bashrc"
 

	
 
- name: Calculate stock checksum for bashrc root account
 
  stat: path="/root/.bashrc"
 
  register: root_bashrc_stat
 

	
 
- name: Replace stock bashrc for root account with skeleton one
 
  copy: src="skel_bashrc" dest="/root/.bashrc"
 
        owner=root group=root mode=640
 
  when: root_bashrc_stat.stat.checksum == "b737c392222ddac2271cc8d0d8cc0308d08cf458"
 

	
 
- name: Install sudo
 
  apt: name=sudo state=present
 

	
0 comments (0 inline, 0 general)