homeserver/roles/pandemonium1986.ansible-role-k9s/molecule/default/prepare.yml
mg 2b3921aa21 Rolle aktualisiert: k9s (#458)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #458
2023-02-17 11:57:35 +01:00

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