homeserver/roles/pandemonium1986.ansible-role-k9s/molecule/default/prepare.yml

20 lines
584 B
YAML
Raw Normal View History

---
- 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 }}"