bootstrap: drop fragile pre-reachability task (inventory_file undefined in Semaphore); Play2 tests reachability naturally

This commit is contained in:
Samuel James 2026-08-26 14:47:54 -04:00
parent ed661af1db
commit 26cce822c0

View File

@ -91,18 +91,6 @@
mode: "0600"
no_log: true
- name: "[pre] test SSH reachability to target as root"
ansible.builtin.command: >-
ansible {{ target | default('racknerd1') }} -i {{ inventory_file }}
-m ansible.builtin.ping
-e "ansible_user={{ connect_user | default('root') }}"
-e "ansible_password={{ pc_root_pass }}"
-e "ansible_ssh_common_args=-o StrictHostKeyChecking=accept-new"
register: reach
changed_when: false
failed_when: reach.rc != 0
no_log: true
- name: "[pre] PASSED"
ansible.builtin.debug:
msg: "Precheck OK — Infisical + secrets valid, {{ target | default('racknerd1') }} reachable as root."