feat: update config to use atuin-server binary
This commit is contained in:
parent
cf7715af30
commit
9ba7c2eb03
3 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
# check current atuin version
|
# check current atuin version
|
||||||
- name: "check current version"
|
- name: "check current version"
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: "/usr/local/bin/atuin -V"
|
cmd: "/usr/local/bin/atuin-server --version"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: "atuin_version_check"
|
register: "atuin_version_check"
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
# delete current atuin version
|
# delete current atuin version
|
||||||
- name: "delete current version"
|
- name: "delete current version"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/usr/local/bin/atuin"
|
path: "/usr/local/bin/atuin-server"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
when: "atuin_version not in atuin_version_check.stdout"
|
when: "atuin_version not in atuin_version_check.stdout"
|
||||||
|
|
||||||
|
|
@ -20,9 +20,9 @@
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src:
|
src:
|
||||||
"https://github.com/atuinsh/atuin/releases/download/\
|
"https://github.com/atuinsh/atuin/releases/download/\
|
||||||
v{{ atuin_version }}/atuin-x86_64-unknown-linux-gnu.tar.gz"
|
v{{ atuin_version }}/atuin-server-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
dest: "/usr/local/bin/"
|
dest: "/usr/local/bin/"
|
||||||
include: "atuin-x86_64-unknown-linux-gnu/atuin"
|
include: "atuin-server-x86_64-unknown-linux-gnu/atuin-server"
|
||||||
extra_opts: ["--strip-components=1"]
|
extra_opts: ["--strip-components=1"]
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8888
|
port = 8888
|
||||||
open_registration = true
|
open_registration = false
|
||||||
db_uri="postgres://{{ atuin_db_user }}:{{ atuin_db_pass }}@{{ atuin_db_host }}/{{ atuin_db_name }}"
|
db_uri="postgres://{{ atuin_db_user }}:{{ atuin_db_pass }}@{{ atuin_db_host }}/{{ atuin_db_name }}"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ After=network-online.target
|
||||||
Wants=network-online.target systemd-networkd-wait-online.service
|
Wants=network-online.target systemd-networkd-wait-online.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/atuin server start
|
ExecStart=/usr/local/bin/atuin-server server start
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue