This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhost_prep.yml
72 lines (66 loc) · 1.49 KB
/
host_prep.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
69
70
71
72
- name: Update everything
apt:
upgrade: dist
update_cache: yes
autoclean: yes
autoremove: yes
#- name: Install Ansible requirements
# apt:
# name: "{{ packages }}"
# state: latest
# vars:
# packages:
# - dconf-cli
- name: Install LFS dependencies
apt:
name: "{{ packages }}"
state: latest
vars:
packages:
- bash
- binutils
- binutils-dev
- bison
- libbison-dev
- bzip2
- coreutils
- diffutils
- findutils
- gawk
- gcc
- gcc-multilib
- g++
- g++-multilib
- libc6
- libc6-dev
- grep
- gzip
- linux-headers-generic
- m4
- make
- patch
- perl
- libperl-dev
- sed
- tar
- libtar-dev
- texinfo
- xz-utils
- name: Disable Ubuntu's use of dash as the default shell instead of bash
debconf:
name: dash
question: dash/sh
vtype: boolean
value: false
- name: Reconfigure dash with the new setting
command: dpkg-reconfigure dash -p critical
- name: Disable Ubuntu's annoying habit of automounting newly formatted disks
command: gsettings set org.gnome.desktop.media-handling automount false
- name: Run the version check script
script: scripts/version-check.sh
register: version_check
failed_when: >
version_check.rc != 0 or
'ERROR' in version_check.stdout or
'not found' in version_check.stdout or
'failed' in version_check.stdout