diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-04-11 19:01:32 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-04-11 19:01:32 +0300 |
commit | d334842c0c4d1d7bab17ca66314d0d367d6af49c (patch) | |
tree | f6ef2555c85d9f4edf8043287ec08f608b781075 | |
parent | 136e44a2c086ee9fecddab5be9c13b97ff3ba6ce (diff) | |
download | ansibleness-d334842c0c4d1d7bab17ca66314d0d367d6af49c.tar.gz |
finntroll: install new wumpus-hunter, run via systemd
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | ansible/finntroll.liw.fi.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ansible/finntroll.liw.fi.yml b/ansible/finntroll.liw.fi.yml index ad4b9b9..d8d88c8 100644 --- a/ansible/finntroll.liw.fi.yml +++ b/ansible/finntroll.liw.fi.yml @@ -17,6 +17,8 @@ - nmap - psmisc - ripgrep + - wumpus-hunter + - name: "create directory for wumpus files" file: state: directory @@ -24,6 +26,51 @@ owner: wumpus group: wumpus + - name: "install wumpus hunter config" + copy: + content: | + description: | + Results of running the Radicle heartwood tests + repeatedly. Report number of successful and fail test + runs per commit. Keep logs of each test run for each + commit. + repository_url: https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git + git_ref: master + command: | + cargo test --locked --workspace + dest: /home/wumpus/wumpus.yaml + owner: wumpus + group: wumpus + + - name: "install service unit for wumpus hunter" + copy: + content: | + [Unit] + Description=Wumpus hunter + After=network.target network-online.target + Requires=network-online.target + + [Service] + User=wumpus + Group=wumpus + ExecStart=/usr/bin/wumpus-hunter run --logs /srv/wumpus /home/wumpus/wumpus.yaml + Environment=RUST_BACKTRACE=1 WUMPUS_LOG=info PATH=/home/wumpus/.cargo/bin:/bin:/sbin + KillMode=process + Restart=never + RestartSec=3 + + [Install] + WantedBy=multi-user.target + dest: /etc/systemd/system/wumpus-hunter.service + + - name: "(re)start systemd unit for Radicle node" + systemd: + name: wumpus-hunter + state: restarted + masked: no + enabled: yes + daemon_reload: yes + vars: ansible_python_interpreter: /usr/bin/python3 |