Skip to content

Commit

Permalink
apply SELinux context after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzini committed Jun 18, 2024
1 parent d7de7bd commit b67e4c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/playbooks/deploy-servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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: |
Expand Down

0 comments on commit b67e4c2

Please sign in to comment.