You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: extract advanced manual commands to dedicated guide
- Create comprehensive docs/user-guide/advanced-manual-commands.md for manual OpenTofu and Ansible command execution
- Remove 86-line advanced commands section from main README
- Replace collapsed section with concise link to new guide
- Update docs/user-guide/README.md with link to advanced manual commands guide
- Document complete build directory structure (tofu/, ansible/, docker-compose/, tracker/, prometheus/, grafana/)
- List actual available Ansible playbooks (wait-cloud-init, update-apt-cache, install-docker, install-docker-compose, configure-firewall, configure-security-updates)
- Add comprehensive sections: Overview, Create/Provision workflow, OpenTofu/Ansible manual execution, Connection methods, Destroy options, Use cases, Troubleshooting
- Emphasize CLI commands as recommended approach with warnings about state management
- Position manual commands as advanced debugging/development tool only
This restructuring improves README readability while providing comprehensive advanced documentation for users who need manual control over infrastructure.
<summary>📋 <strong>Reference: Manual OpenTofu and Ansible Commands (Advanced)</strong></summary>
243
-
244
-
>**Note:** The CLI commands above are the recommended way to manage deployments. This section is for advanced users who want to execute OpenTofu and Ansible commands directly.
245
-
246
-
If you want to experiment with OpenTofu and Ansible commands directly using the generated templates:
247
-
248
-
#### 1️⃣ Generate Resolved Templates
249
-
250
-
```bash
251
-
# Run E2E tests but keep the infrastructure for manual experimentation
252
-
cargo run --bin e2e-complete-workflow-tests -- --keep
253
-
254
-
# This creates resolved templates (no variables) in build/ directories
255
-
# ✅ Verified: Creates build/e2e-complete/tofu/lxd/ and build/e2e-complete/ansible/
256
-
```
257
-
258
-
#### 2️⃣ Navigate to Generated Templates
259
-
260
-
```bash
261
-
# Navigate to the specific environment's resolved OpenTofu templates
262
-
cd build/e2e-complete/tofu/lxd/
263
-
264
-
# Or navigate to resolved Ansible templates
265
-
cd build/e2e-complete/ansible/
266
-
267
-
# Other available environments:
268
-
# cd build/e2e-infrastructure/tofu/lxd/
269
-
# cd build/e2e-infrastructure/ansible/
270
-
# cd build/e2e-deployment/ansible/
271
-
```
272
-
273
-
#### 3️⃣ Execute Commands Manually
274
-
275
-
```bash
276
-
# From build/e2e-complete/tofu/lxd/ - Execute OpenTofu commands
277
-
tofu plan -var-file=variables.tfvars # ✅ Verified: Works with resolved templates
278
-
tofu validate # Validate configuration
279
-
tofu output -json # View current outputs
280
-
# Note: tofu apply already executed during E2E test
281
-
282
-
# From build/e2e-complete/ansible/ - Execute Ansible commands
283
-
ansible-playbook --list-hosts -i inventory.yml wait-cloud-init.yml # ✅ Verified: Works
284
-
ansible-playbook -i inventory.yml wait-cloud-init.yml # Run playbook
0 commit comments