Commit 3ecc47f5 authored by Thorstein Buind Nordby's avatar Thorstein Buind Nordby
Browse files

added back notify for docker-compose restart

parent e2138722
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- name: Apply new SELinux file context to filesystem - name: Apply new SELinux file context to filesystem
command: restorecon -irv {{ awx_compose_dir }} command: restorecon -irv {{ awx_compose_dir }}
#notify: restart containers notify: restart containers
when: selinux_compose_change.changed when: selinux_compose_change.changed
- name: Set SELinux label for database folder - name: Set SELinux label for database folder
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
- name: Apply new SELinux file context to filesystem - name: Apply new SELinux file context to filesystem
command: restorecon -irv {{ awx_postgres_data_dir }} command: restorecon -irv {{ awx_postgres_data_dir }}
#notify: restart containers notify: restart containers
when: selinux_postgre_change.changed when: selinux_postgre_change.changed
when: (ansible_distribution == "CentOS") and not (ansible_distribution_major_version == "7") when: (ansible_distribution == "CentOS") and not (ansible_distribution_major_version == "7")
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
command: semanage fcontext -a -t container_file_t '{{ awx_compose_dir }}(/.*)?' command: semanage fcontext -a -t container_file_t '{{ awx_compose_dir }}(/.*)?'
register: selinux_compose_change register: selinux_compose_change
# Need to implememnt changedwhen
- name: Apply new SELinux file context to filesystem - name: Apply new SELinux file context to filesystem
command: restorecon -irv {{ awx_compose_dir }} command: restorecon -irv {{ awx_compose_dir }}
#notify: restart containers #notify: restart containers
...@@ -58,6 +59,7 @@ ...@@ -58,6 +59,7 @@
- name: Set SELinux label for database folder - name: Set SELinux label for database folder
command: semanage fcontext -a -t container_file_t '{{ awx_postgres_data_dir }}(/.*)?' command: semanage fcontext -a -t container_file_t '{{ awx_postgres_data_dir }}(/.*)?'
# Need to implememnt changedwhen
- name: Apply new SELinux file context to filesystem - name: Apply new SELinux file context to filesystem
command: restorecon -irv {{ awx_postgres_data_dir }} command: restorecon -irv {{ awx_postgres_data_dir }}
#notify: restart containers #notify: restart containers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment