Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created June 22, 2015 19:02
Show Gist options
  • Save guyjacks/a58b9a5235fd57b32004 to your computer and use it in GitHub Desktop.
Save guyjacks/a58b9a5235fd57b32004 to your computer and use it in GitHub Desktop.
---
# file: main.yml
- hosts: fotk
remote_user: fakesudo
tasks:
- name: create a developer user
user: name={{ user }}
password={{ password }}
shell=/bin/bash
generate_ssh_key=yes
state=present
roles:
- { role: create_developer_environment, sudo_user: "{{ user }}" }
- { role: vim, sudo_user: "{{ user }}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment