agnosticd icon indicating copy to clipboard operation
agnosticd copied to clipboard

Dynamic roles

Open fridim opened this issue 4 years ago • 2 comments

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 avatar Oct 15 '20 14:10 fridim

@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.

9strands avatar Dec 22 '22 01:12 9strands

Closing this as its now been 2 years Jan 2024

bbethell-1 avatar Mar 18 '24 15:03 bbethell-1