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
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Load lxc-openstack apparmor profile
|
- name: Reload apparmor
|
||||||
command: apparmor_parser -Kr /etc/apparmor.d/lxc-openstack
|
|
||||||
|
|
||||||
- name: Restart apparmor
|
|
||||||
service:
|
service:
|
||||||
name: "apparmor"
|
name: "apparmor"
|
||||||
state: "restarted"
|
state: "reloaded"
|
||||||
|
|
||||||
- name: Init reload
|
- name: Init reload
|
||||||
command: "initctl reload-configuration"
|
command: "initctl reload-configuration"
|
||||||
|
@ -64,8 +64,10 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify:
|
notify:
|
||||||
- Load lxc-openstack apparmor profile
|
- Reload apparmor
|
||||||
- Restart apparmor
|
|
||||||
tags:
|
tags:
|
||||||
- lxc-files
|
- lxc-files
|
||||||
- lxc-apparmor
|
- lxc-apparmor
|
||||||
|
|
||||||
|
- name: Flush handler to reload apparmor profiles
|
||||||
|
meta: flush_handlers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user