Ensure apparmor is running before reloading
The 'Reload apparmor' handler can fail if the apparmor service is not already in a running state. Add an additional handler to ensure that apparmor is started and enabled on boot. Change-Id: If2752d69beb2c646a64f2ca02ce39a0d4161a5b5
This commit is contained in:
parent
b183a3d5fc
commit
3f0c8f642f
@ -13,6 +13,12 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Start apparmor
|
||||
service:
|
||||
name: "apparmor"
|
||||
enabled: yes
|
||||
state: "started"
|
||||
|
||||
- name: Reload apparmor
|
||||
service:
|
||||
name: "apparmor"
|
||||
|
@ -49,6 +49,7 @@
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify:
|
||||
- Start apparmor
|
||||
- Reload apparmor
|
||||
tags:
|
||||
- lxc-files
|
||||
|
Loading…
x
Reference in New Issue
Block a user