home · contact · privacy
Add first stab at ansible config for new thinkpad.
[config] / ansible / tasks / apt_init.yml
1 ---
2 - include: tasks/set_repos.yml
3
4 - name: update package lists
5   apt: 
6     update_cache: yes
7
8 - name: write APT config file
9   copy:
10     src: files/_etc_apt_apt.conf.d_99mindeps
11     dest: /etc/apt/apt.conf.d/99mindeps
12
13 - name: check for initial_purge_happened flag
14   stat: path=flags/initial_purge_happened
15   register: initial_purge
16
17 - name: perform initial purge
18   include: tasks/initial_purge.yml
19   when: initial_purge.stat.exists == False
20
21 - name: APT - dist-upgrade
22   apt:
23     upgrade: dist