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
|
||||
ansible.builtin.file:
|
||||
path: "/mnt/volumes/{{ item }}"
|
||||
@ -6,7 +13,6 @@
|
||||
mode: '0755'
|
||||
become: true
|
||||
with_items:
|
||||
- etc_internal_named
|
||||
- var_cache_internal_named
|
||||
|
||||
- name: Create volumes data directories
|
||||
@ -18,15 +24,13 @@
|
||||
mode: '0755'
|
||||
become: true
|
||||
with_items:
|
||||
- name: etc_internal_named
|
||||
user: root
|
||||
- name: var_cache_internal_named
|
||||
user: root
|
||||
|
||||
- name: Template bind config files
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/mnt/volumes/etc_internal_named/data/{{ item }}"
|
||||
dest: "/usr/local/docker-mounted-files/docker-internal_named/{{ item }}"
|
||||
seuser: system_u
|
||||
serole: object_r
|
||||
setype: container_file_t
|
||||
@ -35,17 +39,17 @@
|
||||
- named.conf.options
|
||||
- named.conf.local
|
||||
|
||||
- name: Copy bind config files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/mnt/volumes/etc_internal_named/data/{{ item }}"
|
||||
seuser: system_u
|
||||
serole: object_r
|
||||
setype: container_file_t
|
||||
become: true
|
||||
with_items:
|
||||
- named.conf
|
||||
- zones.rfc1918
|
||||
#- name: Copy bind config files
|
||||
# ansible.builtin.copy:
|
||||
# src: "{{ item }}"
|
||||
# dest: "/usr/local/docker-mounted-files/docker-internal_named/{{ item }}"
|
||||
# seuser: system_u
|
||||
# serole: object_r
|
||||
# setype: container_file_t
|
||||
# become: true
|
||||
# with_items:
|
||||
# - named.conf
|
||||
# - zones.rfc1918
|
||||
|
||||
- name: Login to {{ private_registry_domain }} and create ${XDG_RUNTIME_DIR}/containers/auth.json
|
||||
containers.podman.podman_login:
|
||||
@ -63,6 +67,7 @@
|
||||
- 127.0.0.1:53:53/tcp
|
||||
- 127.0.0.1:53:53/udp
|
||||
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
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user