Fix internal_named conf.
This commit is contained in:
parent
4db66521ea
commit
40fe773e52
@ -1,4 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
- name: Create /usr/local/docker-mounted-files/docker-internal_named directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/usr/local/docker-mounted-files/docker-internal_named"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Create volumes directories
|
- name: Create volumes directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/mnt/volumes/{{ item }}"
|
path: "/mnt/volumes/{{ item }}"
|
||||||
@ -6,7 +13,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
become: true
|
become: true
|
||||||
with_items:
|
with_items:
|
||||||
- etc_internal_named
|
|
||||||
- var_cache_internal_named
|
- var_cache_internal_named
|
||||||
|
|
||||||
- name: Create volumes data directories
|
- name: Create volumes data directories
|
||||||
@ -18,15 +24,13 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
become: true
|
become: true
|
||||||
with_items:
|
with_items:
|
||||||
- name: etc_internal_named
|
|
||||||
user: root
|
|
||||||
- name: var_cache_internal_named
|
- name: var_cache_internal_named
|
||||||
user: root
|
user: root
|
||||||
|
|
||||||
- name: Template bind config files
|
- name: Template bind config files
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item }}.j2"
|
||||||
dest: "/mnt/volumes/etc_internal_named/data/{{ item }}"
|
dest: "/usr/local/docker-mounted-files/docker-internal_named/{{ item }}"
|
||||||
seuser: system_u
|
seuser: system_u
|
||||||
serole: object_r
|
serole: object_r
|
||||||
setype: container_file_t
|
setype: container_file_t
|
||||||
@ -35,17 +39,17 @@
|
|||||||
- named.conf.options
|
- named.conf.options
|
||||||
- named.conf.local
|
- named.conf.local
|
||||||
|
|
||||||
- name: Copy bind config files
|
#- name: Copy bind config files
|
||||||
ansible.builtin.copy:
|
# ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
# src: "{{ item }}"
|
||||||
dest: "/mnt/volumes/etc_internal_named/data/{{ item }}"
|
# dest: "/usr/local/docker-mounted-files/docker-internal_named/{{ item }}"
|
||||||
seuser: system_u
|
# seuser: system_u
|
||||||
serole: object_r
|
# serole: object_r
|
||||||
setype: container_file_t
|
# setype: container_file_t
|
||||||
become: true
|
# become: true
|
||||||
with_items:
|
# with_items:
|
||||||
- named.conf
|
# - named.conf
|
||||||
- zones.rfc1918
|
# - zones.rfc1918
|
||||||
|
|
||||||
- name: Login to {{ private_registry_domain }} and create ${XDG_RUNTIME_DIR}/containers/auth.json
|
- name: Login to {{ private_registry_domain }} and create ${XDG_RUNTIME_DIR}/containers/auth.json
|
||||||
containers.podman.podman_login:
|
containers.podman.podman_login:
|
||||||
@ -63,6 +67,7 @@
|
|||||||
- 127.0.0.1:53:53/tcp
|
- 127.0.0.1:53:53/tcp
|
||||||
- 127.0.0.1:53:53/udp
|
- 127.0.0.1:53:53/udp
|
||||||
volume:
|
volume:
|
||||||
- /mnt/volumes/etc_internal_named/data:/etc/bind:z
|
- /usr/local/docker-mounted-files/docker-internal_named/named.conf.options:/etc/bind/named.conf.options:z
|
||||||
|
- /usr/local/docker-mounted-files/docker-internal_named/named.conf.local:/etc/bind/named.conf.local:z
|
||||||
- /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:z
|
- /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:z
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user