Commit 1132a47f authored by Todor Kondic's avatar Todor Kondic
Browse files

stations.yml: New playbook for PFs

parent 728b7fb3
# Standard play. Requires install-bare-guix.yml to have been executed
# before.
- hosts: stations
become: True
become_method: sudo
remote_user: adamsmith
vars_files:
- vars/users.yml
- vars/passwords.yml
pre_tasks:
- name: Update repositories
apt: update_cache=yes
changed_when: False
tasks:
# - name: Set hostname.
# ansible.builtin.hostname:
# name: "{{ inventory_hostname }}"
# tags: hostname
- include: tasks/users.yml
tags: users
- name: Copy profiles.
tags: profile
copy:
src: files/home/user/.profile
dest: "/home/{{ item.login }}/.profile"
become_user: "{{ item.login }}"
loop: "{{ users }}"
- include: tasks/apt.yml
tags: apt
# Set lightdm as login manager and make it listen to incoming
# connections.
- include: tasks/lightdm.yml
tags: lightdm
- include: tasks/guix.yml
tags: guix
# - include: tasks/emacs.yml
# tags: emacs
# - include: tasks/r-setup.yml
# tags: r-setup
# # - include: tasks/metfrag.yml
# # tags: metfrag
handlers:
- name: restart-lightdm
command: systemctl restart lightdm
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment