From b67e4c239da57119f43253f586d54c04bd485870 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 18 Jun 2024 14:35:20 +0200 Subject: [PATCH] apply SELinux context after deployment --- scripts/playbooks/deploy-servers.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/playbooks/deploy-servers.yml b/scripts/playbooks/deploy-servers.yml index 3378769..a07c11b 100644 --- a/scripts/playbooks/deploy-servers.yml +++ b/scripts/playbooks/deploy-servers.yml @@ -39,6 +39,9 @@ setype: httpd_var_run_t target: "{{ data_dir }}/nginx.sock" become: true + - import_tasks: tasks/podman-deploy.yml + vars: + instance_role: server - name: Check whether a preexisting socket exists stat: path: "{{ data_dir }}/nginx.sock" @@ -47,9 +50,6 @@ command: "restorecon -v {{ data_dir }}/nginx.sock" become: true when: nginx_sock.stat.exists - - import_tasks: tasks/podman-deploy.yml - vars: - instance_role: server - name: Create superuser when: superuser_name != "" shell: |