-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
68 lines (68 loc) · 2.28 KB
/
local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
- hosts: localhost
connection: local
become: true
tasks:
- name: Update.
apt:
update_cache: yes
when: ansible_distribution == "Linux Mint" or ansible_distribution == "Ubuntu"
- name: Upgrade.
apt:
upgrade: dist
when: ansible_distribution == "Linux Mint" or ansible_distribution == "Ubuntu"
- name: Install basic packages.
become: true
apt:
name:
- b43-fwcutter #Broadcom wireless drivers
- ca-certificates #List of CA certificates (for safer browsing)
- cdrdao #CD recording software
- chromium-browser # open-source web browser
- firmware-b43-installer #broadcom wireless drivers
- gimp #Image Editing Software
- gimp-help-en
- hardinfo # system information
- htop # Processes, Memory Usage, etc
- inkscape #Vector Graphics Program
- krita #Vector graphics program
- language-pack-es #Spanish language support
- language-pack-gnome-es #Spanish language support
- libdvdcss2 #DVD Playback
- moc #Music On Console
- mplayer #Movie player
- openoffice.org-hyphenation
- sl #Steam Locomotive!
- ubuntu-restricted-extras #codecs
- vlc #Multi-format media player
state: latest
when: ansible_distribution == "Linux Mint" or ansible_distribution == "Ubuntu"
- name: remove the indicator-application from Linux Mint
apt:
name: indicator-application
state: absent
when: ansible_distribution == "Linux Mint"
- name: Remove useless packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes
- name: Check if there is a webcam
stat:
path: /dev/video0
register: has_webcam
- name: If there is a webcam, install cheese
apt:
name: cheese
state: latest
when: has_webcam.stat.exists
- name: check if the timeshift directory exists
stat:
path: /timeshift/
register: timeshift_exists
- name: make an initial image with timeshift if there isn't one there already.
shell: timeshift --create --comments "First backup" --tags D
when: not timeshift_exists.stat.exists
- name: run the steam locomotive when everything has finished.
shell: /usr/games/sl