Extensions system!

Because you know. There's stuff that is sensitive, some that is not
really sensitive but I can't be bothered separating the credentials from
the config, and some stuff that I just don't like to be public.
This commit is contained in:
Geoffrey Frogeye 2021-06-23 21:47:42 +02:00
parent ff4c77407b
commit 8c289fea17
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
7 changed files with 33 additions and 1 deletions

View file

@ -27,3 +27,8 @@ has_forge_access: no
# Wether to permit /home/$USER to be encrypted # Wether to permit /home/$USER to be encrypted
# with stacked filesystem encryption # with stacked filesystem encryption
encrypt_home_stacked_fs: no encrypt_home_stacked_fs: no
# Which extensions to load
extensions: []
# TODO Make role/playbook defaults instead

View file

@ -10,3 +10,6 @@ software_full: yes
has_battery: yes has_battery: yes
auto_numlock: yes auto_numlock: yes
has_forge_access: yes has_forge_access: yes
extensions:
- g
- gh

View file

@ -6,3 +6,6 @@ dev_stuffs:
- ansible - ansible
has_battery: yes has_battery: yes
encrypt_home_stacked_fs: yes encrypt_home_stacked_fs: yes
extensions:
- g
- gh

View file

@ -26,4 +26,6 @@
- role: desktop_environment - role: desktop_environment
tags: desktop_environment tags: desktop_environment
when: display_server when: display_server
- role: extensions
tags: extensions
# TODO Dependencies

View file

@ -8,6 +8,7 @@
- ".cache/mpd" - ".cache/mpd"
- ".ssh" - ".ssh"
- ".local/bin" - ".local/bin"
- ".ansible/collections/ansible_collections/geoffreyfrogeye"
- name: Install dotfiles repository - name: Install dotfiles repository
git: git:
@ -16,6 +17,12 @@
update: "{{ not has_forge_access }}" update: "{{ not has_forge_access }}"
notify: install dotfiles 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 - name: Install python dependencies for scripts
pip: pip:
requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt" requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt"

View file

@ -0,0 +1,3 @@
- include_role:
name: "geoffreyfrogeye.{{ item }}automatrop.entry"
loop: "{{ extensions }}"

View file

@ -300,6 +300,15 @@
become: yes become: yes
notify: etc changed 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 # TODO Hibernation, if that's relevant
# $ sudo blkid | grep 'TYPE="swap"' # $ sudo blkid | grep 'TYPE="swap"'
# $ sudoedit /etc/default/grub # $ sudoedit /etc/default/grub