X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fredhat%2Finit-system.sh;h=a8901f2d0e99dac91c750ecd2166cd5c4f9b2174;hb=HEAD;hp=92361652468f18cfde661ee86fc487298e688f42;hpb=821cc704535e7fb9a2aaafc5692ad68e38308786;p=ansible.git diff --git a/playbooks/redhat/init-system.sh b/playbooks/redhat/init-system.sh index 9236165..a8901f2 100755 --- a/playbooks/redhat/init-system.sh +++ b/playbooks/redhat/init-system.sh @@ -8,11 +8,11 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && -ANSIBLE_ROLES_PATH=roles:../roles && -export ANSIBLE_ROLES_PATH && # 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"