From 1b68766cd6cb4ff0e2bc1732e1379ba00ac2c392 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 1 Mar 2024 20:53:08 +0100 Subject: [PATCH] Improv --- .gitignore | 2 +- ansible.cfg | 6 +++++- datacoop_hosts | 4 ++-- deploy.sh | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6a544c34..f5f456e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -playbook.retry +*.retry *.sw* .vagrant/ *.log diff --git a/ansible.cfg b/ansible.cfg index 42063bef..5f6cbac6 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,4 +1,8 @@ [defaults] -remote_user = root +ask_vault_pass = True inventory = datacoop_hosts +interpreter_python = /usr/bin/python3 +remote_user = root +retry_files_enabled = True use_persistent_connections = True +forks = 10 diff --git a/datacoop_hosts b/datacoop_hosts index 5b8c106e..38922650 100644 --- a/datacoop_hosts +++ b/datacoop_hosts @@ -1,5 +1,5 @@ [production] -hevonen.servers.data.coop ansible_port=19022 ansible_python_interpreter=/usr/bin/python3 +hevonen.servers.data.coop ansible_port=19022 [monitoring] -uptime.data.coop ansible_python_interpreter=/usr/bin/python3 \ No newline at end of file +uptime.data.coop diff --git a/deploy.sh b/deploy.sh index 429e338f..ba74d6f3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -9,7 +9,7 @@ usage () { } >&2 } -BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass" +BASE_CMD="ansible-playbook playbook.yml" if [ "$1" = "--vagrant" ]; then BASE_CMD="$BASE_CMD --verbose --inventory=vagrant_host"