Skip to main content

Ansible deployment

Download the Ansible collection 0.1.2. Install it on your controller with ansible-galaxy collection install sectigo-quantum_ready-0.1.2.tar.gz.

Collection sectigo.quantum_ready, version 0.1.2. This initial collection provides the Linux service lifecycle module and a role for controller-delivered release files and individual device credentials. Windows tasks, automatic deployment-grant authorization/redemption, provider reporting, and macOS deployment are still being built. This is not yet an accepted full fleet deployment integration.

Prepare one host, then roll out​

Use a Linux controller with Ansible Core 2.19 or later. Target Ubuntu 24.04 x86_64 hosts with Python 3.11 or later for Ansible modules, systemd and become access. The installed compiled agent does not use Python. Discovery runs under the installer's restricted service account, not the Ansible administrator.

  1. Download and verify the signed native Linux installer using the Quantum Ready agent instructions. Install that complete verified distribution in a root-owned, non-writable-by-others directory on each host. Pin the executable SHA256 from its verified signed manifest, not an unverified download checksum.
  2. Stage the signed agent manifest, signature, archive, and independently reviewed public verification key on the controller. Choose the exact version and sequence.
  3. Supply each host's approved local configuration. Obtain a unique agent credential for each host, storing it in Ansible Vault or your controller secret store. Never reuse one credential across hosts or put it in a shared deployment package.
  4. Install the collection download on your controller, then run a single-host pilot:
curl --fail --show-error --location --output sectigo-quantum_ready-0.1.2.tar.gz https://qscan.dev/downloads/ansible/sectigo-quantum_ready-0.1.2.tar.gz
ansible-galaxy collection install sectigo-quantum_ready-0.1.2.tar.gz
ansible-playbook -i inventory.yml deploy.yml --limit pilot --check
ansible-playbook -i inventory.yml deploy.yml --limit pilot

Example deploy.yml (set the referenced variables in inventory and your secret store):

- name: Deploy reviewed Quantum Ready release
hosts: quantum_ready
become: true
serial: 1
any_errors_fatal: true
roles:
- role: sectigo.quantum_ready.linux_agent
qscan_installer: /opt/qscan-installer/quantum-ready-service
qscan_installer_sha256: '{{ reviewed_installer_executable_sha256 }}'
qscan_version: '{{ reviewed_agent_version }}'
qscan_sequence: '{{ reviewed_agent_sequence }}'
qscan_release_files:
manifest: '{{ controller_release_directory }}/manifest.json'
signature: '{{ controller_release_directory }}/manifest.sig'
archive: '{{ controller_release_directory }}/sectigo-quantum-ready-linux-x86_64.zip'
trusted_key: '{{ controller_trusted_key }}'
qscan_configuration: '{{ approved_host_configuration }}'
qscan_device_token: '{{ vault_host_agent_token }}'

qscan_device_token is needed only for the first installation. The role transfers it to a root-only staging file with logging/diffs disabled, then removes that transport copy in an always task. The installer retains its own protected credential. An interrupted controller can leave the staging copy until the next run; keep the host and controller private. Do not enable Ansible debug logging or dump registered host variables. The module takes only file paths, never a credential argument.

Install from completed enrollment​

With compiled Linux installer 0.51.206 / sequence 352 or later, you can replace qscan_device_token with qscan_deployment_state: /root/qscan-enrollment. Use the directory created by the agent's unattended enrollment command on that host. Run enrollment as root, keep the directory mode 0700, and pass the same approved configuration through qscan_configuration. Do not copy another device's state or combine the two credential options.

The role passes only the directory path to the installer. It never reads the credential into Ansible variables, creates a transport token file, or removes saved enrollment state. The installer validates completed enrollment, endpoint, configuration and private state permissions. Subsequent runs and upgrades reuse the installed credential. Check mode validates the directory but does not redeem or validate the saved enrollment contents; application performs those checks.

This option connects completed device enrollment to service installation. Automatic grant authorization and redemption by the role are still being built.

Check mode, retries and lifecycle​

  • qscan_state: started (default), stopped, present, or absent.
  • Repeating a successful run at the same release leaves a healthy service unchanged. present makes no running-state change to an unchanged installed release; installing or upgrading starts the service. stopped stops it after install/upgrade.
  • To upgrade, supply the next signed release and exact version/sequence. Downgrades, version/sequence conflicts, pending recovery journals and changed local configuration stop the rollout for review. This module does not edit the local discovery scope.
  • Check mode never invokes the installer or writes credentials. The role previews changed staging inputs; it cannot validate a not-yet-staged signature. Once inputs are staged, the module previews lifecycle actions and reads systemd running status. Actual signature, expiry, archive inventory and installer diagnostics are checked during application. Check-mode success is not proof of installability.
  • Set qscan_state: absent to stop/disable and remove the managed service definition. The installer deliberately retains configuration, credentials, logs and releases. Revoke the device credential in the workspace separately if it must no longer work.
  • Recovery is explicit. Inspect the installer's private local diagnostics and use its recover command before retrying; Ansible will not erase or bypass a recovery journal.

After a pilot, confirm agent contact and queue an approved scan in the workspace. Successful service startup does not prove contact or discovery. Increase serial only after that validation. No Ansible output currently advances a deployment's workspace status automatically.

Verified Linux lifecycle​

Collection 0.1.2 adds completed enrollment state as an alternative to transferring a per-device token. It passed 28 real-Ansible container checks with installer and systemd test doubles. A November 5 tutorial pilot verified actual check/apply/unchanged-repeat/removal with collection 0.1.2 and native agent 0.27.4/790 from unified package 0.51.512 on Ubuntu 24. Controller and target shared the isolated guest using local transport and a unique individual TLS identity. The same agent contacted the production workspace and completed an approved TLS scan. This does not qualify remote SSH, automatic grant redemption, provider assignment, or other operating-system roles. See the complete pilot walkthrough.

Collection 0.1.1 passed 16 lifecycle checks using real Ansible and systemd in an offline Ubuntu VM. The test installed signed native agent 0.25.4/291, upgraded to 0.26.6/346 using compiled installer 0.50.5/81, and verified non-root execution, check mode, unchanged repeat runs, stop/start, recovery after a real reboot, and repeatable service removal. Configuration and the protected credential survived removal; the temporary credential transport file was removed and the credential did not appear in Ansible output or the service journal.

This test used a synthetic device credential without network access. Before a production rollout, complete a pilot with your device credential, confirm agent contact in the workspace, and run an approved validation scan. Live cloud enrollment, Intune/Jamf assignment, and Windows/macOS Ansible deployment are separate acceptance requirements and are not covered by this Linux lifecycle result.

Implementation follows the official Ansible module guidance and module conventions.