Skip to content
Snippets Groups Projects
Commit 146298a5 authored by Chris Hines's avatar Chris Hines
Browse files

make move_homdir work on CentOS7 as well, in which case ec2-user has a different uidNumber

parent 74e8a4bb
No related branches found
No related tags found
No related merge requests found
...@@ -29,3 +29,13 @@ ...@@ -29,3 +29,13 @@
sudo: true sudo: true
register: edit2 register: edit2
- name: edit passwd file
lineinfile:
args:
dest: /etc/passwd
regexp: "{{ ansible_ssh_user }}:x:1000:1000::/home/{{ ansible_ssh_user }}:.*"
line: "{{ ansible_ssh_user }}:x:1000:1000::/local_home/{{ ansible_ssh_user }}:/bin/bash"
backrefs: yes
sudo: true
register: edit3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment