Skip to content

Commit b67e4c2

Browse files
committed
apply SELinux context after deployment
1 parent d7de7bd commit b67e4c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/playbooks/deploy-servers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
setype: httpd_var_run_t
4040
target: "{{ data_dir }}/nginx.sock"
4141
become: true
42+
- import_tasks: tasks/podman-deploy.yml
43+
vars:
44+
instance_role: server
4245
- name: Check whether a preexisting socket exists
4346
stat:
4447
path: "{{ data_dir }}/nginx.sock"
@@ -47,9 +50,6 @@
4750
command: "restorecon -v {{ data_dir }}/nginx.sock"
4851
become: true
4952
when: nginx_sock.stat.exists
50-
- import_tasks: tasks/podman-deploy.yml
51-
vars:
52-
instance_role: server
5353
- name: Create superuser
5454
when: superuser_name != ""
5555
shell: |

0 commit comments

Comments
 (0)