You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
---
|
|
- name: Prepare environment (as admin)
|
|
hosts: nodes
|
|
remote_user: admin
|
|
|
|
tasks:
|
|
- name: Install needed pip packages
|
|
ansible.builtin.command:
|
|
cmd: pip install picotui getmac pyaml requests psutil urllib3
|
|
- name: Copy .xinitrc
|
|
ansible.builtin.copy:
|
|
src: ./.xinitrc
|
|
dest: /home/admin/.xinitrc
|
|
- name: Copy .bash_profile
|
|
ansible.builtin.copy:
|
|
src: ./.bash_profile
|
|
dest: /home/admin/.bash_profile
|
|
force: true
|
|
- name: Clone repository with client application
|
|
ansible.builtin.git:
|
|
dest: /home/admin/client-application
|
|
repo: https://git.nixenos.ovh/engineering-degree/client-application.git
|
|
force: true
|
|
- name: Copy proper config file for valhalla
|
|
ansible.builtin.copy:
|
|
dest: /home/admin/config.yml
|
|
src: valhalla-config.yml
|
|
force: true
|
|
- name: Give proper permissions
|
|
ansible.builtin.file:
|
|
mode: 0777
|
|
path: /home/admin/client-application/vm_run_script.template
|
|
- name: Prepare i3 config directory
|
|
ansible.builtin.file:
|
|
state: directory
|
|
path: /home/admin/.config/i3
|
|
- name: Copy i3config
|
|
ansible.builtin.copy:
|
|
src: ./i3-config
|
|
dest: /home/admin/.config/i3/config
|
|
force: true
|
|
|
|
- name: Enable autologin
|
|
hosts: nodes
|
|
remote_user: admin
|
|
|
|
tasks:
|
|
- name: Create needed systemd directory
|
|
ansible.builtin.file:
|
|
state: directory
|
|
path: /etc/systemd/system/getty@tty1.service.d
|
|
become: true
|
|
- name: Copy new tty service file
|
|
ansible.builtin.copy:
|
|
src: ./tty-override.conf
|
|
dest: /etc/systemd/system/getty@tty1.service.d/override.conf
|
|
become: true |