Use harden role on controller host

This commit is contained in:
Paul-Henri Froidmont 2018-07-23 00:46:10 +02:00
parent 010c48b243
commit a2ba31fab2
9 changed files with 44 additions and 29 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
DIRECTORY=`dirname $0`
cd DIRECTORY/..
rsync -avzhe ssh --delete --exclude=.* ./ root@163.172.145.22:/root/ansible && ssh -t root@163.172.145.22 "cd ansible && $1"
rsync -avzhe ssh --delete --exclude=.* ./ deploy@ansible.banditlair.com:/home/deploy/ansible && ssh -t deploy@ansible.banditlair.com "cd ansible && $1"