Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: all
- connection: local
- become: yes
- tasks:
- # Install Apache2 Web Server
- - name: "Installing Apache Web Server"
- apt: pkg=apache2
- - name: "Creating user jacopo1"
- user:
- name: jacopo1
- uid: 1040
- group: admin
- shell: /bin/bash
- password: "!!"
- - name: "Creating user malhar1"
- user:
- name: malhar1
- uid: 1041
- group: admin
- shell: /bin/bash
- password: "!!"
- - name: Setup authorized key upload
- authorized_key:
- user=malhar1
- key="{{ lookup('file', './pub_keys/id_rsa.pub') }}"
Add Comment
Please, Sign In to add comment