mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
Update the ansible-playbook.yml, add pdns-recursor containers
ansible-playbook.yml now requires ansible 2.8+ to run.
This commit is contained in:
parent
fafae795e4
commit
7feaa6bb42
1 changed files with 101 additions and 42 deletions
|
@ -12,9 +12,52 @@
|
||||||
docker_network:
|
docker_network:
|
||||||
name: pdns-net
|
name: pdns-net
|
||||||
state: present
|
state: present
|
||||||
ipam_options:
|
ipam_config:
|
||||||
subnet: '172.5.0.0/16'
|
- subnet: '172.5.0.0/16'
|
||||||
gateway: '172.5.0.1'
|
gateway: '172.5.0.1'
|
||||||
|
tags:
|
||||||
|
- pdns
|
||||||
|
- pdns-admin
|
||||||
|
- pdns-recursor
|
||||||
|
|
||||||
|
- name: build pdns recursor
|
||||||
|
docker_image:
|
||||||
|
name: my-pdns-recursor
|
||||||
|
state: '{{ i_state }}'
|
||||||
|
source: build
|
||||||
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns-recursor
|
||||||
|
tags:
|
||||||
|
- pdns-recursor
|
||||||
|
|
||||||
|
- name: build pdns recursor alpine version
|
||||||
|
docker_image:
|
||||||
|
name: my-pdns-recursor
|
||||||
|
tag: alpine
|
||||||
|
state: '{{ i_state }}'
|
||||||
|
source: build
|
||||||
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns-recursor
|
||||||
|
dockerfile: Dockerfile.alpine
|
||||||
|
tags:
|
||||||
|
- pdns-recursor
|
||||||
|
|
||||||
|
- name: pdns recursor
|
||||||
|
docker_container:
|
||||||
|
name: pdns-recursor
|
||||||
|
image: my-pdns-recursor:{{ "alpine" if alpine | bool else "latest" }}
|
||||||
|
state: '{{ c_state }}'
|
||||||
|
networks_cli_compatible: true
|
||||||
|
networks:
|
||||||
|
- name: pdns-net
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
tags:
|
||||||
|
- pdns-recursor
|
||||||
|
|
||||||
- name: db
|
- name: db
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -22,7 +65,7 @@
|
||||||
image: mariadb:10.4
|
image: mariadb:10.4
|
||||||
pull: true
|
pull: true
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
aliases:
|
aliases:
|
||||||
|
@ -32,7 +75,7 @@
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- pdns-mariadb-volume:/var/lib/mysql:z
|
- pdns-mariadb-volume:/var/lib/mysql:z
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: my-secret-pw
|
MYSQL_ROOT_PASSWORD: 'my-secret-pw'
|
||||||
tags:
|
tags:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
@ -42,7 +85,7 @@
|
||||||
image: phpmyadmin/phpmyadmin:5
|
image: phpmyadmin/phpmyadmin:5
|
||||||
pull: true
|
pull: true
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
published_ports:
|
published_ports:
|
||||||
|
@ -56,8 +99,11 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: my-pdns
|
name: my-pdns
|
||||||
state: '{{ i_state }}'
|
state: '{{ i_state }}'
|
||||||
force: true
|
source: build
|
||||||
path: ./pdns
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns
|
||||||
tags:
|
tags:
|
||||||
- pdns
|
- pdns
|
||||||
|
|
||||||
|
@ -66,9 +112,12 @@
|
||||||
name: my-pdns
|
name: my-pdns
|
||||||
tag: alpine
|
tag: alpine
|
||||||
state: '{{ i_state }}'
|
state: '{{ i_state }}'
|
||||||
force: true
|
source: build
|
||||||
path: ./pdns
|
force_source: true
|
||||||
dockerfile: Dockerfile.alpine
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns
|
||||||
|
dockerfile: Dockerfile.alpine
|
||||||
tags:
|
tags:
|
||||||
- pdns
|
- pdns
|
||||||
|
|
||||||
|
@ -78,7 +127,7 @@
|
||||||
image: my-pdns:{{ "alpine" if alpine | bool else "latest" }}
|
image: my-pdns:{{ "alpine" if alpine | bool else "latest" }}
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
hostname: ns1.example.com
|
hostname: ns1.example.com
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
ipv4_address: '{{ pdns_master_ip }}'
|
ipv4_address: '{{ pdns_master_ip }}'
|
||||||
|
@ -88,18 +137,18 @@
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env:
|
env:
|
||||||
PDNS_gmysql_password: my-secret-pw
|
PDNS_gmysql_password: 'my-secret-pw'
|
||||||
PDNS_master: yes
|
PDNS_master: 'yes'
|
||||||
PDNS_api: yes
|
PDNS_api: 'yes'
|
||||||
PDNS_api_key: secret
|
PDNS_api_key: 'secret'
|
||||||
PDNS_webserver: yes
|
PDNS_webserver: 'yes'
|
||||||
PDNS_webserver_address: 0.0.0.0
|
PDNS_webserver_address: '0.0.0.0'
|
||||||
PDNS_webserver_allow_from: 172.5.0.0/16
|
PDNS_webserver_allow_from: '172.5.0.0/16'
|
||||||
PDNS_version_string: anonymous
|
PDNS_version_string: 'anonymous'
|
||||||
PDNS_default_ttl: 1500
|
PDNS_default_ttl: '1500'
|
||||||
PDNS_soa_minimum_ttl: 1200
|
PDNS_soa_minimum_ttl: '1200'
|
||||||
PDNS_default_soa_name: ns1.example.com
|
PDNS_default_soa_name: 'ns1.example.com'
|
||||||
PDNS_default_soa_mail: hostmaster.example.com
|
PDNS_default_soa_mail: 'hostmaster.example.com'
|
||||||
PDNS_allow_axfr_ips: '{{ pdns_slave_ip }}'
|
PDNS_allow_axfr_ips: '{{ pdns_slave_ip }}'
|
||||||
PDNS_only_notify: '{{ pdns_slave_ip }}'
|
PDNS_only_notify: '{{ pdns_slave_ip }}'
|
||||||
tags:
|
tags:
|
||||||
|
@ -111,7 +160,7 @@
|
||||||
image: my-pdns:{{ "alpine" if alpine | bool else "latest" }}
|
image: my-pdns:{{ "alpine" if alpine | bool else "latest" }}
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
hostname: ns2.example.com
|
hostname: ns2.example.com
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
ipv4_address: '{{ pdns_slave_ip }}'
|
ipv4_address: '{{ pdns_slave_ip }}'
|
||||||
|
@ -121,14 +170,15 @@
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env:
|
env:
|
||||||
PDNS_gmysql_dbname: powerdnsslave
|
PDNS_gmysql_dbname: 'powerdnsslave'
|
||||||
PDNS_gmysql_password: my-secret-pw
|
PDNS_gmysql_password: 'my-secret-pw'
|
||||||
PDNS_slave: yes
|
PDNS_slave: 'yes'
|
||||||
PDNS_webserver: yes
|
PDNS_superslave: 'yes'
|
||||||
PDNS_webserver_address: 0.0.0.0
|
PDNS_webserver: 'yes'
|
||||||
PDNS_webserver_allow_from: 172.5.0.0/16
|
PDNS_webserver_address: '0.0.0.0'
|
||||||
PDNS_version_string: anonymous
|
PDNS_webserver_allow_from: '172.5.0.0/16'
|
||||||
PDNS_disable_axfr: yes
|
PDNS_version_string: 'anonymous'
|
||||||
|
PDNS_disable_axfr: 'yes'
|
||||||
PDNS_allow_notify_from: '{{ pdns_master_ip }}'
|
PDNS_allow_notify_from: '{{ pdns_master_ip }}'
|
||||||
SUPERMASTER_IPS: '{{ pdns_master_ip }}'
|
SUPERMASTER_IPS: '{{ pdns_master_ip }}'
|
||||||
tags:
|
tags:
|
||||||
|
@ -139,8 +189,11 @@
|
||||||
name: pschiffe/pdns-admin-base
|
name: pschiffe/pdns-admin-base
|
||||||
tag: ngoduykhanh
|
tag: ngoduykhanh
|
||||||
state: '{{ i_state }}'
|
state: '{{ i_state }}'
|
||||||
force: true
|
source: build
|
||||||
path: ./pdns-admin-base-ngoduykhanh
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns-admin-base-ngoduykhanh
|
||||||
tags:
|
tags:
|
||||||
- pdns-admin
|
- pdns-admin
|
||||||
|
|
||||||
|
@ -148,8 +201,11 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: my-pdns-admin-uwsgi
|
name: my-pdns-admin-uwsgi
|
||||||
state: '{{ i_state }}'
|
state: '{{ i_state }}'
|
||||||
force: true
|
source: build
|
||||||
path: ./pdns-admin-uwsgi-ngoduykhanh
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns-admin-uwsgi-ngoduykhanh
|
||||||
tags:
|
tags:
|
||||||
- pdns-admin
|
- pdns-admin
|
||||||
|
|
||||||
|
@ -157,8 +213,11 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: my-pdns-admin-static
|
name: my-pdns-admin-static
|
||||||
state: '{{ i_state }}'
|
state: '{{ i_state }}'
|
||||||
force: true
|
source: build
|
||||||
path: ./pdns-admin-static-ngoduykhanh
|
force_source: true
|
||||||
|
build:
|
||||||
|
pull: true
|
||||||
|
path: ./pdns-admin-static-ngoduykhanh
|
||||||
tags:
|
tags:
|
||||||
- pdns-admin
|
- pdns-admin
|
||||||
|
|
||||||
|
@ -167,7 +226,7 @@
|
||||||
name: pdns-admin-uwsgi
|
name: pdns-admin-uwsgi
|
||||||
image: my-pdns-admin-uwsgi
|
image: my-pdns-admin-uwsgi
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
aliases:
|
aliases:
|
||||||
|
@ -177,7 +236,7 @@
|
||||||
- pdns-admin-upload:/opt/powerdns-admin/upload
|
- pdns-admin-upload:/opt/powerdns-admin/upload
|
||||||
env:
|
env:
|
||||||
PDNS_ADMIN_SQLA_DB_PASSWORD: "'my-secret-pw'"
|
PDNS_ADMIN_SQLA_DB_PASSWORD: "'my-secret-pw'"
|
||||||
PDNS_VERSION: "4.1"
|
PDNS_VERSION: "4.2"
|
||||||
PDNS_API_KEY: "secret"
|
PDNS_API_KEY: "secret"
|
||||||
tags:
|
tags:
|
||||||
- pdns-admin
|
- pdns-admin
|
||||||
|
@ -187,7 +246,7 @@
|
||||||
name: pdns-admin-static
|
name: pdns-admin-static
|
||||||
image: my-pdns-admin-static
|
image: my-pdns-admin-static
|
||||||
state: '{{ c_state }}'
|
state: '{{ c_state }}'
|
||||||
purge_networks: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: pdns-net
|
- name: pdns-net
|
||||||
published_ports:
|
published_ports:
|
||||||
|
|
Loading…
Reference in a new issue