diff --git a/config/automatrop/group_vars/all b/config/automatrop/group_vars/all index 7c00f32..4458a65 100644 --- a/config/automatrop/group_vars/all +++ b/config/automatrop/group_vars/all @@ -27,3 +27,8 @@ has_forge_access: no # Wether to permit /home/$USER to be encrypted # with stacked filesystem encryption encrypt_home_stacked_fs: no + +# Which extensions to load +extensions: [] + +# TODO Make role/playbook defaults instead diff --git a/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr b/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr index 043061a..231c942 100644 --- a/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr +++ b/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr @@ -10,3 +10,6 @@ software_full: yes has_battery: yes auto_numlock: yes has_forge_access: yes +extensions: + - g + - gh diff --git a/config/automatrop/host_vars/pindakaas.geoffrey.frogeye.fr b/config/automatrop/host_vars/pindakaas.geoffrey.frogeye.fr index e1e2100..e2c5bb5 100644 --- a/config/automatrop/host_vars/pindakaas.geoffrey.frogeye.fr +++ b/config/automatrop/host_vars/pindakaas.geoffrey.frogeye.fr @@ -6,3 +6,6 @@ dev_stuffs: - ansible has_battery: yes encrypt_home_stacked_fs: yes +extensions: + - g + - gh diff --git a/config/automatrop/playbooks/default.yml b/config/automatrop/playbooks/default.yml index 605ef93..bb4d552 100644 --- a/config/automatrop/playbooks/default.yml +++ b/config/automatrop/playbooks/default.yml @@ -26,4 +26,6 @@ - role: desktop_environment tags: desktop_environment when: display_server - + - role: extensions + tags: extensions +# TODO Dependencies diff --git a/config/automatrop/roles/dotfiles/tasks/main.yml b/config/automatrop/roles/dotfiles/tasks/main.yml index 732f6ae..807694f 100644 --- a/config/automatrop/roles/dotfiles/tasks/main.yml +++ b/config/automatrop/roles/dotfiles/tasks/main.yml @@ -8,6 +8,7 @@ - ".cache/mpd" - ".ssh" - ".local/bin" + - ".ansible/collections/ansible_collections/geoffreyfrogeye" - name: Install dotfiles repository git: @@ -16,6 +17,12 @@ update: "{{ not has_forge_access }}" notify: install dotfiles +- name: Register as Ansible collection + file: + state: link + src: "{{ ansible_user_dir }}/.dotfiles/config/automatrop" + path: "{{ ansible_user_dir }}/.ansible/collections/ansible_collections/geoffreyfrogeye/automatrop" + - name: Install python dependencies for scripts pip: requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt" diff --git a/config/automatrop/roles/extensions/tasks/main.yml b/config/automatrop/roles/extensions/tasks/main.yml new file mode 100644 index 0000000..b659109 --- /dev/null +++ b/config/automatrop/roles/extensions/tasks/main.yml @@ -0,0 +1,3 @@ +- include_role: + name: "geoffreyfrogeye.{{ item }}automatrop.entry" + loop: "{{ extensions }}" diff --git a/config/automatrop/roles/system/tasks/main.yml b/config/automatrop/roles/system/tasks/main.yml index 275b89e..56a11ae 100644 --- a/config/automatrop/roles/system/tasks/main.yml +++ b/config/automatrop/roles/system/tasks/main.yml @@ -300,6 +300,15 @@ become: yes notify: etc changed +- name: Empty motd + copy: + content: "" + dest: /etc/motd + mode: "u=rw,g=r,o=r" + become: yes + notify: + - etc changed + # TODO Hibernation, if that's relevant # $ sudo blkid | grep 'TYPE="swap"' # $ sudoedit /etc/default/grub