diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-15 10:16:56 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-15 10:16:56 +0300 |
commit | 8f3e1bf450b5f7c9b64a3288a7d1c444f6d6cd0e (patch) | |
tree | 08b3f894a69fb809983ee82c8d186ef3eb88fc05 /ansible | |
parent | 8155ab074930c887b1edfdbb9c228459e90859ed (diff) | |
download | ansibleness-8f3e1bf450b5f7c9b64a3288a7d1c444f6d6cd0e.tar.gz |
apt.liw.fi: all.sh; install index page
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'ansible')
-rwxr-xr-x | ansible/all.sh | 1 | ||||
-rw-r--r-- | ansible/apt.liw.fi.html | 26 | ||||
-rw-r--r-- | ansible/apt.liw.fi.yml | 2 | ||||
-rw-r--r-- | ansible/roles/apt-repository/tasks/main.yml | 6 |
4 files changed, 35 insertions, 0 deletions
diff --git a/ansible/all.sh b/ansible/all.sh index 96476ab..d7106e6 100755 --- a/ansible/all.sh +++ b/ansible/all.sh @@ -28,6 +28,7 @@ maybe_run_playbook holywood2 maybe_run_playbook atuin.liw.fi maybe_run_playbook mirror-git maybe_run_playbook git.liw.fi +maybe_run_playbook apt.liw.fi maybe_run_playbook http.liw.fi maybe_run_playbook irc.liw.fi maybe_run_playbook shell-shell.vm.liw.fi diff --git a/ansible/apt.liw.fi.html b/ansible/apt.liw.fi.html new file mode 100644 index 0000000..b3480b2 --- /dev/null +++ b/ansible/apt.liw.fi.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta charset="utf-8" /> + <title>apt.liw.fi</title> + <meta name="viewport" content="width=device-width, initial-scale=1" /> +</head> +<body lang=en> + <article> + <h1>apt.liw.fi</h1> + + <p>This is the personal APT repository + of <a href="https://liw.fi">Lars Wirzenius<a>. It contains + software packaged for the <a href="https://debian.org">Debian</a> + operating system as <code>.deb</code> packages. All software here + is free and open source software, but not guaranteed to work. + </p> + + <p>The repository is signed using the OpenPGP key with fingerprint + <code>A2F5 BB20 E85F 2C54 1F73 BBD7 B5AB F936 554B A3C6</code>, + which is not easily available at this time. This will be fixed + eventually, but until then, if you need the key, ask Lars directly. + </p> + </article> +</body> +</html> diff --git a/ansible/apt.liw.fi.yml b/ansible/apt.liw.fi.yml index ad29b9c..ea66aa1 100644 --- a/ansible/apt.liw.fi.yml +++ b/ansible/apt.liw.fi.yml @@ -41,3 +41,5 @@ apt_signing_key_pub: "{{ lookup('pipe', 'pass show ick2/apt_key.pub') }}" apt_signing_key_fingerprint: | {{ lookup('pipe', 'pass show ick2/apt_key.pub | gpg --show-keys --with-colons | grep "^fpr:" | cut -d: -f10') }} + apt_index_content: | + {{ lookup('file', 'apt.liw.fi.html') }} diff --git a/ansible/roles/apt-repository/tasks/main.yml b/ansible/roles/apt-repository/tasks/main.yml index 39f8c44..6bf8412 100644 --- a/ansible/roles/apt-repository/tasks/main.yml +++ b/ansible/roles/apt-repository/tasks/main.yml @@ -96,6 +96,12 @@ state: directory path: /srv/http +- name: "install an index page in the web root directory" + copy: + content: | + {{ apt_index_content }} + dest: /srv/http/index.html + - name: "configure apache to server APT repository over http" template: src: 000-default.conf |