Skip to content
Snippets Groups Projects
Commit e7dab078 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

added regex for ubuntu for ubuntu 14

parent c5b15665
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@
sudo: true
register: edit1
- name: edit passwd file
lineinfile:
args:
......@@ -29,6 +30,8 @@
sudo: true
register: edit2
- name: edit passwd file
lineinfile:
args:
......@@ -39,3 +42,14 @@
sudo: true
register: edit3
# ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
- name: edit passwd file for ubuntu 14
lineinfile:
args:
dest: /etc/passwd
regexp: "{{ ansible_ssh_user }}:x:1000:1000:Ubuntu:/home/{{ ansible_ssh_user }}:.*"
line: "{{ ansible_ssh_user }}:x:1000:1000:/Ubuntu:local_home/{{ ansible_ssh_user }}:/bin/bash"
backrefs: yes
sudo: true
register: edit4
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