diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-11-15 19:12:41 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-11-15 19:12:41 +0200 |
commit | cb0c5ca67c1d0a8a10c859a9e6d9633c7a879348 (patch) | |
tree | 9b620c25f167c33537206cad7bfd407c9b495402 /ansible/radicle-other-node.yml | |
parent | f1fcbb80dd45443fc4aa43ee16c42269568470a3 (diff) | |
download | ansibleness-cb0c5ca67c1d0a8a10c859a9e6d9633c7a879348.tar.gz |
radicle-other-node: playbook
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'ansible/radicle-other-node.yml')
-rw-r--r-- | ansible/radicle-other-node.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ansible/radicle-other-node.yml b/ansible/radicle-other-node.yml new file mode 100644 index 0000000..b2d4716 --- /dev/null +++ b/ansible/radicle-other-node.yml @@ -0,0 +1,55 @@ +- hosts: radicle-other-node + remote_user: debian + become: yes + roles: + - role: sane_debian_system + - role: sshd + - role: comfortable-debian-system + - role: unix_users + - role: rust-rustup + - role: liw + tasks: + - name: "install important additional packages" + apt: + name: + - nmap + - ripgrep + + - name: "install radicle using installer" + shell: | + filename="/home/liw/.radicle/bin/rad" + + install=false + if [ ! -e "$filename" ]; then + install=true + else + weekago="$(date -d 'week ago' +%s)" + mtime="$(stat -c %Y "$filename")" + if [ "$mtime" -lt "$weekago" ]; then + install=true + fi + fi + + if $install; then + curl -sSf https://radicle.xyz/install | sudo -u liw bash + fi + vars: + ansible_python_interpreter: /usr/bin/python3 + + sane_debian_system_version: 2 + sane_debian_system_hostname: "{{ inventory_hostname }}" + sane_debian_system_codename: bookworm + sane_debian_system_timezone: Europe/Helsinki + sane_debian_system_sources_lists: + - repo: | + deb http://security.debian.org/debian-security bookworm-security main contrib non-free + + unix_users_version: 2 + unix_users: + - username: liw + comment: Lars Wirzenius + + sshd_version: 1 + + rustup_cargo_install: | + starship |