From 07fd21666b6c7680bec66bdbe7c407be41b70ca4 Mon Sep 17 00:00:00 2001 From: n0mad1k Date: Fri, 11 Apr 2025 21:44:57 -0400 Subject: [PATCH] making progress on c2 now --- Linode/c2.yml | 1 + deploy.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Linode/c2.yml b/Linode/c2.yml index c595628..8288342 100644 --- a/Linode/c2.yml +++ b/Linode/c2.yml @@ -81,6 +81,7 @@ ansible_user: "root" ansible_ssh_private_key_file: "{{ ssh_key_path | replace('.pub', '') }}" ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" + ansible_python_interpreter: "/usr/bin/python3" # Use remote system's Python - name: Configure C2 server hosts: c2servers diff --git a/deploy.py b/deploy.py index 85c8924..f11090c 100644 --- a/deploy.py +++ b/deploy.py @@ -490,8 +490,8 @@ def create_inventory_file(config, deployment_type): # For local execution, use the current Python interpreter inventory_content.append(f"ansible_python_interpreter={sys.executable}") else: - # For remote hosts, explicitly set to auto-detect or python3 - inventory_content.append("ansible_python_interpreter=auto") + # For remote hosts, use the system Python interpreter + inventory_content.append("ansible_python_interpreter=/usr/bin/python3") # Add specific host sections based on deployment type if deployment_type == "local":