summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-12-30 09:17:36 +0200
committerLars Wirzenius <liw@liw.fi>2023-12-30 09:17:36 +0200
commitcbacf8fb76e4e92f18609d776d750e640babdbca (patch)
tree2be1c6a7339bcfa4c6280efa63cc4743b0b8c8d4
parentace065db4ff3e0f04267c75bcb9fa70463de061a (diff)
downloadambient-build-vm-cbacf8fb76e4e92f18609d776d750e640babdbca.tar.gz
liw.yml: combine all my playbooks into one, for simplicity
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--liw.yml109
-rw-r--r--rust.yml20
-rw-r--r--subplot.yml38
3 files changed, 109 insertions, 58 deletions
diff --git a/liw.yml b/liw.yml
new file mode 100644
index 0000000..f5a650b
--- /dev/null
+++ b/liw.yml
@@ -0,0 +1,109 @@
+- hosts: image
+ tasks:
+
+ - name: "ensure /etc/resolv.conf exists"
+ copy:
+ content: |
+ nameserver 8.8.8.8
+ dest: /etc/resolv.conf
+
+ - name: "install apt.liw.fi and ci-prod signing key"
+ copy:
+ content: |
+ {{ apt_liw_fi_signing_key }}
+ dest: /etc/apt/trusted.gpg.d/apt.liw.fi.asc
+
+ - name: "add the apt.liw.fi APT repository"
+ apt_repository:
+ repo: "deb http://apt.liw.fi/debian unstable main"
+ update_cache: no
+
+ - name: "add the ci-prod-controller.vm.liw.fi APT repository"
+ apt_repository:
+ repo: "deb http://ci-prod-controller.vm.liw.fi/debian unstable-ci main"
+ update_cache: no
+
+ - name: "update apt cache"
+ shell: |
+ apt-get update
+
+ - name: "install tools and build-dependencies"
+ apt:
+ name:
+ - build-essential
+ - cmake
+ - curl
+ - daemonize
+ - debhelper
+ - dh-cargo
+ - git
+ - graphviz
+ - ikiwiki
+ - libimage-magick-perl
+ - librsvg2-bin
+ - moreutils
+ - pandoc
+ - perlmagick
+ - plantuml
+ - plantuml
+ - procps
+ - python3-requests
+ - subplot
+ - tidy
+
+ - name: "install rustup"
+ shell: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh
+ sh /tmp/rustup.sh -y --no-modify-path
+ export PATH="$HOME/.cargo/bin:$PATH"
+ rustup default stable
+ rustup show
+ rustc --version
+
+ - name: "clone ikiwiki plugin for Pandoc"
+ git:
+ repo: https://github.com/dubiousjim/pandoc-iki
+ dest: /root/pandoc-iki
+
+ - name: "create ikiwiki plugin directory"
+ file:
+ state: directory
+ path: /root/.ikiwiki/IkiWiki/Plugin
+
+ - name: "install Pandoc plugin for ikiwiki"
+ shell: |
+ cp /root/pandoc-iki/pandoc.pm /root/.ikiwiki/IkiWiki/Plugin/pandoc.pm
+
+ vars:
+ ansible_python_interpreter: /usr/bin/python3
+
+ apt_liw_fi_signing_key: |
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
+
+ mQINBFrLO7kBEADdz6mHstYmKU5Dp6OSjxWtWaqTDOX1sJdmmaIK/9EKVIH0Maxp
+ 5kvVO5G6mULLAjv/kLG0MxasHPrq8I2A/y8AqKAGVL8QelwLjQMIFZ30/VbGQPHS
+ +T5TZXEnoQtNce1GUhFwJ38ZyjjwHBFV9tSec7rZ2Q3YeM3nNnGPf6DacXGfEOPO
+ HIN4sXAN2hzNXNjKRzTIvxQseb6nr7afUh/SlZ3yhQOCrIzmYlD7tP9WJe7ofL0p
+ JY4pDQYw8rT6nC2BE/ioemh84kERCT1vCe+OVFlSRuMlqfEv+ZpKQ+itOmPDQ/lM
+ jpUm1K2hrW/lWpxT/ZxHKo/w1K36J5WshgMZxfUu5BMCL9LMqMcrXNhNjDMfxDMM
+ 3yBPOvQ4ls6fecOZ/bsFo1p8VzMk/w/eG8vPs5yuNa5XxN95yFMXoOHGb5Xbu8D4
+ 6yiW+Af70LbiSNpGdmNdneiGB2fY38NxBukPw5u3S5qG8HedSmMr1RvSr5kHoAAe
+ UbOY+BYaaKsTAT7+1skUW1o3FJSqoRKCHAzTsMWC6zzhR8hRn7jVrrguH1hGbqq5
+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--git a/rust.yml b/rust.yml
deleted file mode 100644
index 03c05c1..0000000
--- a/rust.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-- hosts: image
- tasks:
-
- - name: "install tools for Rust"
- apt:
- name:
- - build-essential
- - cmake
- - curl
- - debhelper
- - dh-cargo
- - git
-
- - name: "install rustup"
- shell: |
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh
- sh /tmp/rustup.sh -y --no-modify-path
-
- vars:
- ansible_python_interpreter: /usr/bin/python3
diff --git a/subplot.yml b/subplot.yml
deleted file mode 100644
index c48e3d9..0000000
--- a/subplot.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-- hosts: image
- tasks:
-
- - name: "add the apt.liw.fi APT repository"
- apt_repository:
- repo: "deb https://apt.liw.fi/debian unstable main"
- update_cache: yes
-
- - name: "install tools for Rust and Subplot"
- apt:
- name:
- - build-essential
- - cmake
- - curl
- - debhelper
- - dh-cargo
- - git
- - graphviz
- - librsvg2-bin
- - moreutils
- - plantuml
- - daemonize
- - procps
- - python3-requests
- - subplot
- - tidy
-
- - name: "install rustup"
- shell: |
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh
- sh /tmp/rustup.sh -y --no-modify-path
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup default stable
- rustup show
- rustc --version
-
- vars:
- ansible_python_interpreter: /usr/bin/python3