vbmade2000

Untitled

Jul 10th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.64 KB | None | 0 0
  1. ---
  2. - hosts: all
  3.   connection: local
  4.   become: yes
  5.  
  6.   tasks:
  7.     # Install Apache2 Web Server
  8.     - name: "Installing Apache Web Server"
  9.       apt: pkg=apache2
  10.  
  11.     - name: "Creating user jacopo1"
  12.       user:
  13.         name: jacopo1
  14.         uid: 1040
  15.         group: admin
  16.         shell: /bin/bash
  17.         password: "!!"
  18.  
  19.     - name: "Creating user malhar1"
  20.       user:
  21.         name: malhar1
  22.         uid: 1041
  23.         group: admin
  24.         shell: /bin/bash
  25.         password: "!!"
  26.  
  27.     - name: Setup authorized key upload
  28.       authorized_key:
  29.         user=malhar1
  30.         key="{{ lookup('file', './pub_keys/id_rsa.pub') }}"
Add Comment
Please, Sign In to add comment