diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-04 17:34:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-04 17:34:58 +0300 |
commit | 97999ca67b834b1216108e542cdb73010e36930d (patch) | |
tree | 23b0cf6b55780a7a8f8f3023670eda17f04a2864 /manager | |
parent | 32e9d47ce40da71c31fd39192ba97597598d6ad2 (diff) | |
download | ick-contractor-97999ca67b834b1216108e542cdb73010e36930d.tar.gz |
ansible
Diffstat (limited to 'manager')
-rwxr-xr-x | manager | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +import os +import subprocess + +env = dict(os.environ) +env[ + "ANSIBLE_SSH_ARGS" +] = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null" + +subprocess.check_call( + [ + "ansible-playbook", + "-i", + "hosts", + "manager.yml", + "-e@manager-vars.yml", + "-eansible_ssh_host=manager", + ], + env=env, +) |