mg
0df8312cfc
inv vm-test2 bugfix reboot invfentory vim polybar gruppe polybar i3 vim extra programme eigenes playbook inventar Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#105 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
---
|
|
- hosts: all
|
|
gather_facts: false
|
|
max_fail_percentage: 20%
|
|
roles:
|
|
- { role: robertdebock.bootstrap, tags: "bootstrap", become: yes}
|
|
- { role: ryandaniels.create_users, tags: "user", become: yes}
|
|
- { role: mgrote.r8152_kernel_module }
|
|
post_tasks:
|
|
- name: reboot für qemu-guest-agent (dauert bis zu 2min!)
|
|
become: true
|
|
reboot:
|
|
reboot_timeout: 120
|
|
- name: Change user password
|
|
become: true
|
|
user:
|
|
name: mg
|
|
update_password: always
|
|
password: "{{ lookup('keepass', 'mg_linux_password_hash', 'password') }}"
|
|
|
|
vars:
|
|
### reobertdebock.bootstrap
|
|
bootstrap_user: mg
|
|
bootstrap_wait_for_host: no
|
|
bootstrap_timeout: 1
|
|
### ansible
|
|
ansible_user: "mg"
|
|
ansible_password: hallowelt
|
|
ansible_become_password: hallowelt
|
|
ansible_ssh_common_args: "'-o StrictHostKeyChecking=no'"
|
|
|
|
|
|
|
|
# Nach dem ersten durchlaufen ist keine Anmeldung mehr per Passwort & ssh möglich. Damit scheitert auch der Versuch das Playbook ein zweites mal durchlaufen zu lassen.
|