We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e3e60 commit cd36168Copy full SHA for cd36168
scripts/playbooks/deploy-servers.yml
@@ -31,6 +31,19 @@
31
file:
32
path: "{{ data_dir }}"
33
state: directory
34
+ - name: Configuring SELinux file context
35
+ sefcontext:
36
+ setype: httpd_var_run_t
37
+ target: "{{ data_dir }}/nginx.sock"
38
+ become: true
39
+ - name: Check whether a preexisting socket exists
40
+ stat:
41
+ path: "{{ data_dir }}/nginx.sock"
42
+ register: nginx_sock
43
+ - name: Apply new SELinux file context to filesystem
44
+ command: "restorecon -v {{ data_dir }}/nginx.sock"
45
46
+ when: nginx_sock.stat.exists
47
- name: Create podman network
48
containers.podman.podman_network:
49
name: patchew
0 commit comments