- name: setup dnc gather_facts: no hosts: "{{target}}" become: "{{become_var}}" tasks: # need to define which nodes live in this cluster, in case we are calling # this playbook with a single target node - name: define nodes set_fact: nodes: "{{ groups[cluster] }}" run_once: true - debug: var=nodes run_once: true # todo - git pull? - name: deploy dnc from github ansible.builtin.shell: executable: /bin/bash cmd: | set -e git clone https://github.com/pbraun9/dnc.git ls -ldh dnc/ creates: /root/dnc - name: deploy dnc.conf template: src: dnc.conf dest: /etc/dnc.conf