master
Raw Download raw file
 1---
 2- hosts: chromebooks
 3
 4  vars: 
 5    home_dir: "{{ ansible_env.HOME }}/git/home"
 6    logbook_dir: "{{ ansible_env.HOME }}/git/logbook"
 7    terminus_font_file: "ter-powerline-v12n.psf.gz"
 8
 9  tasks:  
10  - name: apt - update && upgrade && autoremove
11    apt:
12      update_cache: yes
13      cache_valid_time: 3600
14      upgrade: full
15      autoremove: yes
16    become: True
17    tags: apt
18
19  - name: apt - utilities
20    apt: 
21      name: "{{ item }}"
22      state: latest
23    become: True
24    tags: apt
25    with_items:
26    # misc tools
27    - man
28    - htop
29    - tmux
30    - vim
31    - git
32    - apt-file # search apt for header files
33    - curl
34    - mtr-tiny
35    - elinks
36    # GPG
37    - gnupg2 
38    - gnupg-agent
39    - pinentry-tty 
40    - scdaemon 
41    - pcscd
42    # Ansible
43    - python3 
44    - python3-pip
45    # Wireless
46    - iw
47    - wpasupplicant
48    # laptop tools
49    - powertop
50
51  - name: apt - utilities
52    apt: 
53      name: "{{ item }}"
54      state: latest
55    become: True
56    tags: apt
57    with_items:
58    - firmware-iwlwifi # reboot is easist way to enable, only on debian
59    when: ansible_distribution == 'Debian'
60  
61  - include: tasks/home.yml
62  - include: tasks/logbook.yml
63  - include: tasks/battery.yml
64  - include: tasks/consolefont.yml
65  - include: tasks/keyboard.yml
66  - include: tasks/git.yml
67  - include: tasks/systemd.yml