Change 32880

russell_jackson (Russell C. Jackson (Rusty))
Russell C. Jackson (Rusty) committed this change into //guest/russell_jackson/ansible-sdp/roles/perforce-sdp-install
Request Review
Download .zip
molecule/perforce-sdp-install: make the role idempotent + add group_vars

Idempotence fixes (the molecule idempotence step now passes):
- install.yml: gate the SDP download/unpack include on 'not sdp_installed'
  (unarchive is not idempotent; matches the existing cleanup gate).
- users.yml: known_hosts touch preserves timestamps; ssh_config copy uses
  force:false so it doesn't fight the 'Add ssh config lines' blockinfile; drop
  'force' on the ansibleuser user (it regenerated the SSH key every run).
- Add molecule/default/group_vars/all.yml (perforce_user_password hash; its '$'
  sequences cannot live in molecule.yml due to interpolation).

Full 'molecule test' (create/prepare/converge/idempotence/verify/destroy) now
passes on Ubuntu 22.04 and Rocky 9 (native arm64 + aarch64 binaries).
  • Files 3
  • Comments 0
2 edited 1 added 0 deleted
molecule/default/group_vars/all.yml#1
Loading...
tasks/dependencies/users.yml#2
Loading...
tasks/install.yml#7
Loading...
Tip: Use n and p to cycle through the changes.