Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: opens
- # remote_user: root
- vars:
- # created with
- # import crypt; print crypt.crypt('my password is","opens")
- password : opFOKd0OkwsWY
- # use to gather fact and to configure interface and ip
- gather_facts: no
- tasks:
- - name: ping test
- ping:
- - name: create opens user and give sudo permission
- user: name=opens state=present groups="sudo" password={{password}}
Add Comment
Please, Sign In to add comment