foreman-ansible-modules icon indicating copy to clipboard operation
foreman-ansible-modules copied to clipboard

Add state present_with_defaults to host and hostgroup module

Open milanzelenka opened this issue 2 years ago • 0 comments

SUMMARY

Adding state: present_with_defaults to host (and hostgroups) module helps to idempotency in playbook with build: true.

theforeman.foreman.host:
  name: XY
  state: present
  build: true

=> existing installed XY host will be switched into build mode again (and re-builded depending on provision_method)

theforeman.foreman.host:
  name: XY
  state: present_with_defaults
  build: true

=> no change on existing installed XY host

ISSUE TYPE
  • Feature Idea

milanzelenka avatar Jul 12 '22 09:07 milanzelenka