Deploy and validate one Linux pilot with Ansible
Deploy and validate one Linux pilot with Ansible
Loading video…
This task follows individual enrollment and Linux service installation. It uses the published sectigo.quantum_ready collection 0.1.2 to deploy one native agent, validate its contact and TLS evidence, then retire it.
The controller and target in this recording share one isolated Ubuntu 24 guest. The inventory uses local transport. No remote SSH authentication, Intune assignment, Jamf assignment, Windows Ansible role, or macOS Ansible role is demonstrated. Production workspace requests and the TLS scan are real; no services are mocked in this lesson.
Before you start
Use an approved Linux controller with Ansible Core 2.19 or later, a compatible pilot target, and administrator access for installation. The compiled scanner runs under the installer's restricted account. Python is required for these Ansible modules, not for the installed compiled agent.
Download the published collection and the verified native Linux distribution. Review the independent release key and signed manifests. Pin the installer executable checksum from the verified manifest, plus the exact agent version and release sequence. Do not substitute a checksum from an unverified download.
The recording uses unified package 0.51.512, native agent 0.27.4/790, and the collection 0.1.2. Follow the currently published package instructions when selecting your own release.
Enroll one identity and limit discovery
- Open Agents & sensors, choose Enroll agent, expand the individual-component options, and select the TLS scanner.
- Give the pilot a recognizable name. Store its unique credential in your controller's approved secret store. Never distribute one agent credential to multiple hosts.
- Allow only the endpoints approved for the pilot. The recording uses
qscan.dev:443; replace that with your authorized target. - Supply the same approved host configuration to the playbook. Local configuration and cloud policy both constrain work; a successful service installation does not authorize arbitrary scans.
Prepare the inventory and playbook
Install the collection on the controller:
ansible-galaxy collection install sectigo-quantum_ready-0.1.2.tar.gz
Create a host named pilot in the quantum_ready group. This recording uses ansible_connection: local because controller and target share the guest. For a separate target, configure your approved SSH identity and privilege escalation. Do not copy the local-transport setting into a remote inventory by accident.
Use the sectigo.quantum_ready.linux_agent role with serial: 1 and any_errors_fatal: true. Supply qscan_installer, qscan_installer_sha256, qscan_version, qscan_sequence, qscan_release_files, and qscan_configuration. Supply a unique qscan_device_token through Vault or your controller secret store. The lab reads its value from a root-only local file; the playbook contains only the lookup expression.
See Ansible deployment for the complete role example and the alternative completed-enrollment-state handoff. The video does not demonstrate automatic deployment-grant redemption.
Preview, apply, and repeat
ansible-playbook -i inventory.json deploy.yml --limit pilot --check
ansible-playbook -i inventory.json deploy.yml --limit pilot
ansible-playbook -i inventory.json deploy.yml --limit pilot
Check mode previews staging without installing or writing a credential. Before inputs exist on the target, it cannot establish signature validity or installability. Application performs those checks. The repeated application should report changed=0 for an unchanged healthy installation.
Keep Ansible debug logging off, do not dump host variables, and do not enable secret-bearing diffs. The role removes its temporary transport token in an always task. A controller interruption can leave that staging copy until a later run; protect controller and target storage.
Verify contact, scan, and inspect evidence
- Inspect native service status. Confirm the expected release is active under the restricted account.
- Find the same agent in the workspace. Check recent contact and runtime version. Local service health alone does not prove control-plane connectivity.
- Create a TLS scan for the approved endpoint and select this pilot agent.
- Follow the job to its final state. Open the resulting inventory record and inspect protocol and certificate evidence.
- Review coverage and unknown dimensions. A TLS observation is not proof of all cryptography inside the application. Expand the rollout only after these checks succeed.
Retire the pilot
ansible-playbook -i inventory.json deploy.yml --limit pilot -e qscan_state=absent
This stops and removes the service definition while retaining protected local configuration, credentials, logs, and releases. Revoke the agent in the workspace separately, then archive it if you want it removed from the active fleet view. The recording deletes its owned disposable VM afterward; routine service removal does not erase that retained data for you.
Recover from common problems
- Check mode passes, application fails: read the installer's actual signature, expiry, inventory, permission, and release-pin diagnostic. Preview success is not proof of installability.
- A recovery journal blocks a retry: inspect the private local diagnostics and use the installer's documented recovery operation. Do not delete the journal or bypass verification.
- The service runs but contact is absent: inspect the configured endpoint, routing policy, credential state, and local diagnostics. Do not widen discovery scope as a connectivity fix.
- A second run changes something: compare the selected release, local configuration, and requested running state. Do not treat an unexpected change as idempotent success.
- Removal leaves files: this is deliberate. Revoke the credential separately and apply your retention policy to the protected files.
- A different OS or provider is needed: use its documented installation path. This Linux role demonstration is not acceptance of Windows/macOS Ansible or Intune/Jamf assignment.
Narration transcript
Introduction
Let's take the Linux service setup we just learned and make it repeatable with Ansible. By the end, you'll have deployed one restricted agent, checked that a second run changes nothing, and followed a real scan into the workspace. We're using the published Linux collection. Our controller and target share one isolated Ubuntu machine here, so this demonstrates local transport, not remote SSH authentication.
Enroll
Start with an individual TLS agent. Give it a name you can recognize in the fleet, then save its unique credential in your controller's protected secret store. Don't put that credential into a shared package or reuse it on another host. This pilot is allowed to inspect just QScan's public TLS endpoint. The agent still has its own identity, even though Ansible handles installation.
Inventory
Now install the collection on the controller and look at the inventory. There's one host named pilot, under the Quantum Ready group. The local connection is deliberate for this lab. With a separate controller, you'd configure your approved SSH identity and privilege escalation instead. Keep the first rollout this small. A successful deployment to one machine gives you evidence to review before you increase the batch size.
Playbook
Here's the actual playbook. It uses the Linux agent role, runs one host at a time, and stops the rollout if a host fails. The installer checksum, agent version, release sequence, and signed release files are pinned. The configuration limits discovery to our approved endpoint. Notice that the credential is read from a protected local file. Its value is never written into this playbook or shown on screen.
Preview
Run check mode before applying anything. It can preview the staging work without installing the service or copying the credential. There's an important limit here: if the release files haven't been staged yet, check mode can't prove that the installer will accept their signatures. Read the result as a preview, not a completed deployment. We'll apply the exact same reviewed inputs next, where those checks actually happen.
Apply
Now apply the playbook to pilot. The role stages the approved inputs privately and calls the signed native installer. Discovery runs under a restricted service account, even though installation needs administrator privileges. The role removes its temporary credential transport file afterward. Keep controller debug logging off, and don't dump host variables. If a run is interrupted, inspect the installer's recovery diagnostics before you retry; don't delete a recovery journal to force it through.
Verify
Let's run that same playbook again. The recap shows zero changes, which tells us the installed release and running state already match this request. Then check the native service status and find the agent in the workspace. These are different checks: a healthy local service doesn't prove it can contact the control plane. We want the matching identity, recent contact, and the expected compiled runtime before submitting work.
Scan
Queue a TLS scan for the one endpoint we authorized, and select this pilot agent. The job view gives us the feedback loop: queued work, processing, and the final result. Ansible finishing successfully isn't the finish line for a discovery deployment. This job proves that the enrolled agent can receive an allowed task and return evidence. A failed job would be a reason to stop the rollout and inspect its diagnostic details. If the list still shows queued after the work finishes, use Refresh latest. Then return to the matching job and check its final status. Don't confuse an old list entry with a new failure, and don't submit another scan just to refresh the screen.
Evidence
Open the resulting inventory record and inspect what the agent actually observed. Certificate and protocol evidence support this result; they don't prove every cryptographic property of the application behind the endpoint. Keep unknown or missing dimensions visible. Once this pilot's identity, service state, and discovery result all check out, you have a useful basis for expanding deployment in small batches with a unique credential for each host.
Recap
To retire the pilot, apply the absent state, then revoke and archive its agent in the workspace. Service removal intentionally retains protected local configuration and credentials, so revocation is a separate step. Our disposable lab machine is deleted afterward. You've now completed the Linux Ansible loop: preview, install, repeat, verify contact, scan, inspect evidence, and retire. Windows and macOS Ansible deployment aren't part of this published collection's demonstrated scope.