---
- hosts: all
  tasks:
  - name: Create config directory
    file:
      state: directory
      owner: root
      group: root
      mode:  0755
      path: /etc/rocknsm

  - name: Render template
    template:
      backup: yes
      src: rock_config.yml.j2
      dest: /etc/rocknsm/config-reference.yml
      owner: root
      group: root
      mode: 0644

---
- hosts: all
  tasks:
  - name: Create config directory
    file:
      state: directory
      owner: root
      group: root
      mode:  0755
      path: /etc/rocknsm

  - name: Render template
    template:
      backup: yes
      src: rock_config.yml.j2
      dest: /etc/rocknsm/config.yml
      owner: root
      group: root
      mode: 0644

Revert config to a single file
Revert config to a single file
