Browse Source

ansible: run.sh -> local.sh

pull/1/head
10sr 10 years ago
parent
commit
13deb987c9
2 changed files with 8 additions and 2 deletions
  1. +1
    -1
      ansible/local.hosts
  2. +7
    -1
      ansible/local.sh

ansible/hosts → ansible/local.hosts View File

@@ -1 +1 @@
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2 package_manager=pacman
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2

ansible/run.sh → ansible/local.sh View File

@@ -8,4 +8,10 @@ then
exit 1
fi

ansible-playbook -i hosts --ask-sudo-pass "$@"
if test $# -eq 0
then
echo "usage: $0 <playbook> [...]"
exit 1
fi

ansible-playbook -i local.hosts --ask-sudo-pass "$@"

Loading…
Cancel
Save