Created
January 23, 2019 04:12
-
-
Save marzdgzmn/1cb0d83932e2c062b89383dbb3a5c331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Configure named.options | |
template: src=named.options.j2 dest=/etc/named/named.options | |
notify: | |
- restart named-chroot | |
tags: | |
- named_options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Deploy local nameservers | |
hosts: ns-lns | |
become: yes | |
tasks: | |
- name: Apply base setup | |
include_role: | |
name: common | |
tags: base | |
- name: Setup groups and users | |
import_role: | |
name: users | |
tags: users | |
- name: Configure as a local nameserver | |
include_role: | |
name: nameservers | |
tasks_from: local | |
tags: lns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook -i ./inventories/testing/hosts plays/ns-lns.yml --tags lns master :: 19h :: ● :: ⬡ | |
PLAY [Deploy local nameservers] *********************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** | |
ok: [clns1] | |
TASK [Configure as a local nameserver] **************************************************************************************************************************************************************************** | |
PLAY RECAP ******************************************************************************************************************************************************************************************************** | |
lns1 : ok=1 changed=0 unreachable=0 failed=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment