From: Oleg Broytman Date: Sun, 6 Mar 2022 17:09:29 +0000 (+0300) Subject: Feat(playbooks/*/init-system.sh): Add user `phd` X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=e8637fa0c109b53cc0644014b69b40fa67cdf906 Feat(playbooks/*/init-system.sh): Add user `phd` Ignore errors if the user already exists. --- diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 2937b31..9fae195 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -8,6 +8,8 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && # Passwordless access isn't configured yet; use `ssh` connection sharing. diff --git a/playbooks/redhat/init-system.sh b/playbooks/redhat/init-system.sh index df2f22f..c4423a9 100755 --- a/playbooks/redhat/init-system.sh +++ b/playbooks/redhat/init-system.sh @@ -8,6 +8,8 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && # Passwordless access isn't configured yet; use `ssh` connection sharing.