Skip to content

Instantly share code, notes, and snippets.

@joeysk2012
Last active October 10, 2018 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joeysk2012/f1eb69628fc5a71a6c44d8c2a47a9e38 to your computer and use it in GitHub Desktop.
Save joeysk2012/f1eb69628fc5a71a6c44d8c2a47a9e38 to your computer and use it in GitHub Desktop.
- name: Start a new AWS with ansible enabled
hosts: workers
become: true
become_method: sudo
vars:
root_password: ******
tasks:
- name: create sudo user
password: "{{ root_password }}"
- name: create ansadmin
user:
name: ansadmin
password: "{{ root_password }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment