diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-11-06 11:55:32 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-11-06 11:55:32 +0200 |
commit | 8463feee0c5e04926974baeb410d40a192d8a170 (patch) | |
tree | 7913ed3781fe1a24ab6eb02715ab01dd223968de /ansible | |
parent | ff2271c08fefbcc65f6fe8c7d8ddbdeb8244102a (diff) | |
download | ansibleness-8463feee0c5e04926974baeb410d40a192d8a170.tar.gz |
vmadm-dev: add playbook
Sponsored-by: author
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/vmadm-dev.yml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/ansible/vmadm-dev.yml b/ansible/vmadm-dev.yml new file mode 100644 index 0000000..e8964d5 --- /dev/null +++ b/ansible/vmadm-dev.yml @@ -0,0 +1,68 @@ +- hosts: vmadm-dev + remote_user: debian + become: yes + roles: + - role: sane_debian_system + tags: [sane] + - role: comfortable-debian-system + tags: [comfy] + - role: unix_users + tags: [users] + - role: vmhost + tags: [vmhost] + - role: rust-rustup + tags: [rustup] + - role: liw + tags: [liw] + tasks: + - apt: + name: + - build-essential + - curl + - libvirt-dev + - moreutils + - plantuml + - python3-libvirt + - python3-lxml + - python3-yaml + - subplot + - texlive-fonts-recommended + - texlive-latex-base + - texlive-latex-recommended + - get_url: + url: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2 + dest: /home/liw/debian.qcow2 + mode: 0644 + - virt_net: + name: default + autostart: yes + - virt_net: + name: default + command: start + state: active + - user: + name: liw + groups: + - libvirt + vars: + ansible_python_interpreter: python3 + + sane_debian_system_version: 2 + sane_debian_system_hostname: vmadm-dev + sane_debian_system_codename: bullseye + sane_debian_system_sources_lists: + - repo: deb http://ci-prod-controller.vm.liw.fi/debian unstable-ci main + signing_key: "{{ ci_prod_signing_key }}" + + timezone: Europe/Helsinki + + unix_users_version: 2 + unix_users: + - username: debian + authorized_keys: | + {{ liw_personal_ssh_pub }} + - username: liw + comment: Lars Wirzenius + sudo: yes + authorized_keys: | + {{ liw_personal_ssh_pub }} |