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:
Qin Wang 2016-09-08 19:01:23 +00:00
parent b9152b925c
commit 75d32df1dc
2 changed files with 6 additions and 7 deletions

View File

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

View File

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