making progress on c2 now

This commit is contained in:
n0mad1k
2025-04-11 21:44:57 -04:00
parent 95602a5df0
commit 07fd21666b
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -81,6 +81,7 @@
ansible_user: "root" ansible_user: "root"
ansible_ssh_private_key_file: "{{ ssh_key_path | replace('.pub', '') }}" ansible_ssh_private_key_file: "{{ ssh_key_path | replace('.pub', '') }}"
ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" 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 - name: Configure C2 server
hosts: c2servers hosts: c2servers
+2 -2
View File
@@ -490,8 +490,8 @@ def create_inventory_file(config, deployment_type):
# For local execution, use the current Python interpreter # For local execution, use the current Python interpreter
inventory_content.append(f"ansible_python_interpreter={sys.executable}") inventory_content.append(f"ansible_python_interpreter={sys.executable}")
else: else:
# For remote hosts, explicitly set to auto-detect or python3 # For remote hosts, use the system Python interpreter
inventory_content.append("ansible_python_interpreter=auto") inventory_content.append("ansible_python_interpreter=/usr/bin/python3")
# Add specific host sections based on deployment type # Add specific host sections based on deployment type
if deployment_type == "local": if deployment_type == "local":