Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: localhost
- remote_user: user
- become: yes
- vars:
- test_user: testuser
- test_group: testgroup
- test_user_password: somepassword
- tasks:
- - name: Creating Group for testuser
- group:
- name: "{{ test_group }}"
- state: present
- - name: Creating testuser
- user:
- name: "{{ test_user }}"
- password: "{{ test_user_password | password_hash('sha512') }}"
- shell: /bin/bash
- group: "{{ test_group }}"
- update_password: on_create
- - name: Creating testuser
- user:
- name: "{{ test_user }}"
- password: "{{ test_user_password | password_hash('sha512', test_user_salt) }}"
- shell: /bin/bash
- group: "{{ test_group }}"
- update_password: on_create
Add Comment
Please, Sign In to add comment