From 452d5cca7932c1872f8e2f906a2b97e8e9d97d51 Mon Sep 17 00:00:00 2001 From: dimti Date: Thu, 4 Apr 2024 18:21:14 +0300 Subject: [PATCH] * usage shared run playbook script extended with user doc * example with alternate ssh port * remove todo from yadm, because that is realized in dotfiles repo --- hosts | 1 + playbooks/own/yadm.yml | 1 - run-playbook.sh | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts b/hosts index 1eb7a07..b7c5e08 100644 --- a/hosts +++ b/hosts @@ -11,6 +11,7 @@ [lxc_templates] #debian10 ansible_host=debian10.dedic106-dhcp.dimti.ru ansible_user=root +#debian10 ansible_host='{{ lxc_host }}' ansible_port=22230 debian10 ansible_host='{{ lxc_host }}' [anygroup] diff --git a/playbooks/own/yadm.yml b/playbooks/own/yadm.yml index 695c30a..150cada 100644 --- a/playbooks/own/yadm.yml +++ b/playbooks/own/yadm.yml @@ -3,4 +3,3 @@ tasks: - name: Clone dotfiles repo shell: yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git -# TODO: убрать sudo для автовключения тмукса из .bashrc diff --git a/run-playbook.sh b/run-playbook.sh index 61413b3..e003233 100755 --- a/run-playbook.sh +++ b/run-playbook.sh @@ -14,6 +14,7 @@ usage() { echo "Usage: run-vps-playbook.sh server playbook" echo "server - domain or ip address of the vps server" echo "playbook - playbook file" + echo "[user] - if choose the use it, otherwise used root" } if [[ -z "$SERVER" ]]; then