File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
roles/edpm_tripleo_cleanup Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,4 @@ edpm_service_removal_skip_list:
3737 - tripleo_swift_object_replicator.service
3838 - tripleo_swift_object_server.service
3939 - tripleo_swift_object_updater.service
40+ - tripleo-container-shutdown.service
Original file line number Diff line number Diff line change 4949 name : " {{ item }}"
5050 state : stopped
5151 enabled : false
52- masked : true
5352 register : result
5453 loop : " {{ tripleo_services }}"
5554 failed_when : false
7473 loop_var : path
7574 when : edpm_remove_tripleo_unit_files
7675
76+ - name : Mask tripleo services to make them unusable
77+ tags :
78+ - adoption
79+ become : true
80+ ansible.builtin.systemd_service :
81+ name : " {{ item }}"
82+ masked : true
83+ register : result_mask
84+ loop : " {{ tripleo_services }}"
85+ failed_when : false
86+
87+ - name : Check for errors
88+ ansible.builtin.fail :
89+ msg : " Attempt to mask service {{ item.item }} failed with {{ item.msg }}"
90+ loop : " {{ result_mask.results }}"
91+ when : >
92+ ('msg' in item) and
93+ (item.msg != '') and
94+ ("Could not find the requested service" not in item.msg)
95+
7796 - name : Adopt (stop tracking) certs from tripleo
7897 tags :
7998 - adoption
You can’t perform that action at this time.
0 commit comments