X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fredhat%2Finit-system.sh;h=a8901f2d0e99dac91c750ecd2166cd5c4f9b2174;hb=559cb51c6b9f8b3237d576792af281d6a1fd8842;hp=df2f22f5d4386d230c7db20eac36d15be3d0de08;hpb=424c41462e9f4f38fdf666f2180342a8268a95c7;p=ansible.git diff --git a/playbooks/redhat/init-system.sh b/playbooks/redhat/init-system.sh index df2f22f..a8901f2 100755 --- a/playbooks/redhat/init-system.sh +++ b/playbooks/redhat/init-system.sh @@ -8,9 +8,11 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && # Passwordless access isn't configured yet; use `ssh` connection sharing. # `sudo` isn't configured yet too; ask for phd password. -ansible-playbook ../init-system.yml "$@" -e hosts="$host" -K && -exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host" +ansible-playbook ../init-system.yaml "$@" -e hosts="$host" -K && +exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"