summaryrefslogtreecommitdiff
path: root/ansible/radicle-dev.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-23 19:01:04 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-23 19:01:04 +0300
commit52969038edb50856336b8bb84734123839acc529 (patch)
treec90c3b7683e18267274db3f54e66464d3112c58d /ansible/radicle-dev.yml
parent859bd75dff2667b1cfde4d5aaff8bb31fef6ebc0 (diff)
downloadansibleness-52969038edb50856336b8bb84734123839acc529.tar.gz
radicle-dev: allow building Radicle in VM
Diffstat (limited to 'ansible/radicle-dev.yml')
-rw-r--r--ansible/radicle-dev.yml87
1 files changed, 0 insertions, 87 deletions
diff --git a/ansible/radicle-dev.yml b/ansible/radicle-dev.yml
index b2383c1..0152a2e 100644
--- a/ansible/radicle-dev.yml
+++ b/ansible/radicle-dev.yml
@@ -8,7 +8,6 @@
- role: unix_users
- role: rust-rustup
- role: liw
- - role: emacs
tasks:
- name: "install important additional packages"
apt:
@@ -21,89 +20,6 @@
- pandoc
- librsvg2-bin
- texlive-latex-recommended
-
- - name: "reload dbus"
- systemd:
- name: dbus
- state: reloaded
-
- - name: "reload sshd"
- systemd:
- name: sshd
- state: reloaded
-
- - name: "create liw systemd/user config directory"
- file:
- state: directory
- path: /home/liw/.config/systemd/user/
- owner: liw
- group: liw
- mode: 0755
-
- - name: "install systemd unit for ssh-agent without graphical desktop"
- copy:
- content: |
- [Unit]
- Description=SSH key agent
-
- [Service]
- Type=simple
- Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
- ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
-
- [Install]
- WantedBy=default.target
- dest: /home/liw/.config/systemd/user/ssh-agent-user.service
- owner: liw
- group: liw
- mode: 0644
-
- - name: "create environment.d for liw"
- file:
- state: directory
- path: /home/liw/.config/environment.d
- owner: liw
- group: liw
- mode: 0755
-
- - name: "create environment variable file for liw"
- copy:
- content: |
- SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
- dest: /home/liw/.config/environment.d/ssh_auth_socket.conf
- owner: liw
- group: liw
- mode: 0644
-
- - name: "install radicle using installer"
- shell: |
- if [ ! -e /home/liw/.radicle/bin/rad ]; then
- curl -sSf https://radicle.xyz/install | sudo -u liw bash
- fi
-
- - name: "create liw/.radicle/keys"
- file:
- state: directory
- path: /home/liw/.radicle/keys
- owner: liw
- group: liw
- mode: 0755
-
- - name: "install radicle private key"
- copy:
- content: "{{ radicle_key }}"
- dest: /home/liw/.radicle/keys/radicle
- owner: liw
- group: liw
- mode: 0600
-
- - name: "install radicle public key"
- copy:
- content: "{{ radicle_pub }}"
- dest: /home/liw/.radicle/keys/radicle.pub
- owner: liw
- group: liw
- mode: 0644
vars:
ansible_python_interpreter: /usr/bin/python3
@@ -129,6 +45,3 @@
starship \
pikchr-cli \
ytop
-
- radicle_key: "{{ lookup('pipe', 'pass radicle/key') }}"
- radicle_pub: "{{ lookup('pipe', 'pass radicle/key.pub') }}"