X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=ansible%2Fconfig.yml;h=3386c91a46f6e3c25be3fc79d4e8c07c172d1c28;hb=53ac7fcda43e961e1d756b1bb93ccd34a1ab07cb;hp=f2cb77ea1264eb5bbade9d65708220a448ad7c84;hpb=592c97158efdc6d5e9e372c3aade848d829a2f74;p=config
diff --git a/ansible/config.yml b/ansible/config.yml
index f2cb77e..3386c91 100644
--- a/ansible/config.yml
+++ b/ansible/config.yml
@@ -4,6 +4,9 @@
become: yes
tasks:
+ - name: ensure directories for symlinks exist
+ file: state=directory dest={{item}}
+ with_lines: cat ~/config/ansible/files/dirs | sed -e 's/ *#.*$//'
- name: symlink system files
file: state=hard force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
with_fileglob: ~/config/ansible/files/system/*
@@ -50,7 +53,7 @@
with_lines: cat ~/config/ansible/files/apt-mark/man | sed -e 's/ *#.*$//'
- name: set /etc/localtime
file: state=link force=yes src=/usr/share/zoneinfo/Europe/Berlin dest=/etc/localtime
- - name: ensure various useful tools are installed â sudo, git, vim, less, openssh, alsamixer
+ - name: ensure various useful tools are installed â sudo, git, vim, less, openssh
apt: name={{item}} state=present
with_lines: cat ~/config/ansible/files/apt-mark/various_useful | sed -e 's/ *#.*$//'
- name: ensure boot messages are not cleared on start up
@@ -71,6 +74,8 @@
- name: ensure 3d acceleration and optimus switch
apt: name={{item}} state=present
with_lines: cat ~/config/ansible/files/apt-mark/3d_acceleration | sed -e 's/ *#.*$//'
+ - name: ensure user plom is in bumblebee group
+ user: name=plom groups=bumblebee append=yes
- name: ensure basic X tools
apt: name={{item}} state=present
with_lines: cat ~/config/ansible/files/apt-mark/basic_x_tools | sed -e 's/ *#.*$//'
@@ -90,6 +95,13 @@
apt: name={{item}} state=present
with_lines: cat ~/config/ansible/files/apt-mark/multimedia | sed -e 's/ *#.*$//'
+ # Ensure hotkeys.
+ #
+ # For some reason, the brightness hotkeys still won't be available unless acpid is restarted (yes, after reboot).
+ - name: ensure hotkeys
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/hotkeys | sed -e 's/ *#.*$//'
+
# Remove undesired packages
- name: collect desired packages
shell: cat files/apt-mark/* | sed -e 's/ *#.*$//' > /tmp/white_list_unsorted && sort /tmp/white_list_unsorted > /tmp/white_list_sorted