diff options
| author | spmfox <spmfox@foxwd.com> | 2024-08-27 17:34:55 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2024-08-27 17:34:55 -0400 |
| commit | 5ca4fbf2cfe781efedc7c078acaa826c6ad39b10 (patch) | |
| tree | 598ff2c8b51948091ffa1eb1fbb6ef6f7b26b776 /roles/host/tasks/cpanel-dnsonly.yml | |
| parent | 4aa6b11581718f66e711bf26fbb41e96fa3a4661 (diff) | |
converting to roles, converting from runlabels to quadlet ~ breaking change
Diffstat (limited to 'roles/host/tasks/cpanel-dnsonly.yml')
| -rw-r--r-- | roles/host/tasks/cpanel-dnsonly.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/host/tasks/cpanel-dnsonly.yml b/roles/host/tasks/cpanel-dnsonly.yml new file mode 100644 index 0000000..dbb9062 --- /dev/null +++ b/roles/host/tasks/cpanel-dnsonly.yml @@ -0,0 +1,28 @@ +- name: Confirm if cpsrvd is not listening on http ports + ansible.builtin.shell: "whmapi1 get_tweaksetting key='disable_cphttpd' |grep 'value: 1' || /bin/true" + register: cpsrv_listen + +- name: Turn off cpsrvd listening on http ports (if necessary) + ansible.builtin.shell: "whmapi1 set_tweaksetting key='disable_cphttpd' value='1' ; /scripts/restartsrv_cpsrvd" + when: cpsrv_listen.stdout | length == 0 + +- name: Turn off firewalld + ansible.builtin.service: + name: "firewalld" + state: stopped + enabled: false + +- name: Create new tmp directory for podman + ansible.builtin.file: + path: "/var/containers/tmp" + owner: "{{ host_containers_user }}" + group: "{{ host_containers_user }}" + state: directory + +- name: Configure podman to use new tmp directory + ansible.builtin.blockinfile: + path: "/etc/containers/containers.conf" + create: true + block: | + [engine] + env = ["TMPDIR=/var/containers/tmp"] |
