]> git.phdru.name Git - ansible.git/blob - playbooks/redhat/init-system.sh
92361652468f18cfde661ee86fc487298e688f42
[ansible.git] / playbooks / redhat / init-system.sh
1 #! /bin/sh
2
3 if [ -z "$1" ]; then
4    echo "Usage: $0 host [...params...]" >&2
5    exit 1
6 fi
7
8 host="$1"
9 shift
10
11 cd "`dirname \"$0\"`" &&
12 ANSIBLE_ROLES_PATH=roles:../roles &&
13 export ANSIBLE_ROLES_PATH &&
14
15 # Passwordless access isn't configured yet; use `ssh` connection sharing.
16 # `sudo` isn't configured yet too; ask for phd password.
17 ansible-playbook ../init-system.yml "$@" -e hosts="$host" -K &&
18 exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"