20 lines
584 B
YAML
20 lines
584 B
YAML
|
---
|
||
|
- name: Prepare
|
||
|
hosts: all
|
||
|
vars:
|
||
|
users: [ "pandemonium" ]
|
||
|
tasks:
|
||
|
- name: Ensure sudo is installed on all platforms
|
||
|
package:
|
||
|
name: [ sudo ]
|
||
|
state: present
|
||
|
- name: Create molecule user
|
||
|
user:
|
||
|
name: "{{ item }}"
|
||
|
generate_ssh_key: true
|
||
|
ssh_key_bits: 4096
|
||
|
ssh_key_comment: fake_key
|
||
|
ssh_key_file: .ssh/id_rsa
|
||
|
ssh_key_type: rsa
|
||
|
loop: "{{ users }}"
|