feat: deploy with Ansible and infra roles #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ansible-deploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Restructured the Ansible deployment around the conventions and shared roles from
zoo/infra.playbooks/frame.yamlclones/updateszoo/infraon the controller andincludes its shared
dockerrole.roles/frame_crackremains a local app role and only handles the singleCompose application: source sync,
compose.yaml, build/start and health check.inventory.iniandhost_vars/frame.yaml, followingthe infra host layout.
/opt/frame_crack/.source_checksum; unchanged runs do not sync, rebuild orrestart the container.
requirements.yamlinstalls theansible.posixcollection used bysynchronize.Why the infra repo is cloned instead of installed as a role
ansible-galaxycan install a git role only when the role is at the repositoryroot. The infra roles are in the
roles/subdirectory of a monorepo, so anormal
requirements.yamlroles:entry cannot install them. The playbookclones the repo with the built-in
gitmodule andansible.cfgaddsvendor/infra/rolestoroles_path. The shared role is then used exactly as ifit had been installed by Galaxy.
Layout
Usage
Validation
ansible-playbook --syntax-checkpasses.ansible-lintpasses with theproductionprofile.dockerrole is included,the app is installed in
/opt/frame_crack, the container responds withHTTP 200.
changed=0.feat: add Ansible deploymentto feat: deploy with Ansible and infra rolesView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.