agnosticd
agnosticd copied to clipboard
Dynamic roles
This change, if applied, adds hooks in all stages to dynamically load ansible roles on differents hosts.
- always localhost for pre-infra, infra, destroy
- groups of hosts for post-infra, pre-software, software and post-software steps
ex:
agnosticd_pre_infra_roles:
- name: infra-ec2-ssh-key
- name: infra-aws-capacity-reservation
when: a custom condition
agnosticd_pre_software_roles:
- name: set-repositories
group: all
- name: install_common
group: all
- name: bastion-lite
group: bastions
- name: bastion-student-user
group: bastions
- name: host_virtualenv
group: bastions
Can be used coupled with agnosticd_dynamic role:
agnosticd_dynamic_role_galaxy_sources:
- name: docker
src: geerlingguy.docker
version: 0.2.0
agnosticd_post_software_roles:
- name: docker
group: bastion
SUMMARY
ISSUE TYPE
- Feature Pull Request
- New config Pull Request
- New role Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
@fridim @tonykay - do we still need this PR? I'll close in Jan if I haven't heard back so we can clean out old stuff.
Closing this as its now been 2 years Jan 2024