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.

47 lines
1.3 KiB
YAML

2 years ago
---
- 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: Clone repository with client application
ansible.builtin.git:
dest: /home/nixen/client-application
repo: https://git.nixenos.ovh/engineering-degree/client-application.git
- name: Copy proper config file for valhalla
ansible.builtin.copy:
dest: /home/admin/config.yml
src: valhalla-config.yml
force: true
- 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: ansible
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