]> git.phdru.name Git - ansible.git/commitdiff
Feat(playbooks/*/init-system.sh): Add user `phd`
authorOleg Broytman <phd@phdru.name>
Sun, 6 Mar 2022 17:09:29 +0000 (20:09 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 7 Mar 2022 06:50:29 +0000 (09:50 +0300)
Ignore errors if the user already exists.

playbooks/debian/init-system.sh
playbooks/redhat/init-system.sh

index 2937b319fb760ffd5fede030386a048d20652a16..9fae1958f892e1df32bd75723cda5e0bcf5281a6 100755 (executable)
@@ -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.
index df2f22f5d4386d230c7db20eac36d15be3d0de08..c4423a9263ddb0219f3917bfbc45da2bc3b22c31 100755 (executable)
@@ -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.