Closed m-czernek closed 5 years ago
When removing parent location that has defined children, we get state changed:
changed
changed: [server1 -> localhost] => (item={'parent': 'loc_parent', 'children': ['dev', 'qa', 'prod']})
However, the location is still there (and so are the children).
Suggestion for bugfix: The above should fail.
Suggestion for improvement: Add option "force" or "recursive" that'd delete first all the children, then the parent location itself.
ansible 2.8.3 config file = /home/mczernek/ansible.cfg configured module search path = ['/home/mczernek/library', '/home/mczernek/foreman-ansible-modules/plugins/modules'] ansible python module location = /home/mczernek/foreman-ansible-modules-venv/lib64/python3.7/site-packages/ansible executable location = /home/mczernek/foreman-ansible-modules-venv/bin/ansible python version = 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
tfm-rubygem-katello-3.10.0.54-1.el7sat.noarch foreman-1.20.1.35-1.el7sat.noarch
Version: 0.32.0
Nailgun for Satellite 6.5 is undefined
This is "known" in https://projects.theforeman.org/issues/26937
@m-czernek please try https://github.com/theforeman/foreman-ansible-modules/pull/437
SUMMARY
When removing parent location that has defined children, we get state
changed
:changed: [server1 -> localhost] => (item={'parent': 'loc_parent', 'children': ['dev', 'qa', 'prod']})
However, the location is still there (and so are the children).
Suggestion for bugfix: The above should fail.
Suggestion for improvement: Add option "force" or "recursive" that'd delete first all the children, then the parent location itself.
ISSUE TYPE
ANSIBLE VERSION
KATELLO/FOREMAN VERSION
NAILGUN VERSION
Nailgun for Satellite 6.5 is undefined