removed redundant handler and flushed handler right away
loading lxc-openstack profile into apparmor is done with service reloading, so the redundant loading handler of lxc-openstack is removed. The reloading handler is flushed right away in case of interrupted execution. Change-Id: I7a0e9d886808e0949a0e8301c6a5ea2994c6cd49 closes-bug: 1620757
This commit is contained in:
parent
b9152b925c
commit
75d32df1dc
@ -13,13 +13,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Load lxc-openstack apparmor profile
|
||||
command: apparmor_parser -Kr /etc/apparmor.d/lxc-openstack
|
||||
|
||||
- name: Restart apparmor
|
||||
- name: Reload apparmor
|
||||
service:
|
||||
name: "apparmor"
|
||||
state: "restarted"
|
||||
state: "reloaded"
|
||||
|
||||
- name: Init reload
|
||||
command: "initctl reload-configuration"
|
||||
|
@ -64,8 +64,10 @@
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify:
|
||||
- Load lxc-openstack apparmor profile
|
||||
- Restart apparmor
|
||||
- Reload apparmor
|
||||
tags:
|
||||
- lxc-files
|
||||
- lxc-apparmor
|
||||
|
||||
- name: Flush handler to reload apparmor profiles
|
||||
meta: flush_handlers
|
||||
|
Loading…
x
Reference in New Issue
Block a user