---
- name: Load bsdkit-defaults.yml
  tags: always
  include_vars:
    file: bsdkit-defaults.yml

- name: Check if /.bsdkit.yml exists
  tags: always
  stat:
    path: /.bsdkit.yml
  register: stat_bsdkit_yml

- name: Load /.bsdkit.yml
  when: stat_bsdkit_yml.stat.exists
  tags: always
  include_vars:
    file: /.bsdkit.yml

- name: Create /.bsdkit.yml
  when: not stat_bsdkit_yml.stat.exists
  tags: always
  copy:
    src: bsdkit-defaults.yml
    dest: /.bsdkit.yml
    owner: root
    group: wheel
    mode: "0600"

- name: Set root shell
  tags:
    - configure
  user:
    name: root
    shell: /bin/sh

---
- name: Load bsdkit-defaults.yml
  tags: always
  include_vars:
    file: bsdkit-defaults.yml

- name: Check if /.bsdkit.yml exists
  tags: always
  stat:
    path: /.bsdkit.yml
  register: stat_bsdkit_yml

- name: Load /.bsdkit.yml
  when: stat_bsdkit_yml.stat.exists
  tags: always
  include_vars:
    file: /.bsdkit.yml

- name: Create /.bsdkit.yml
  when: not stat_bsdkit_yml.stat.exists
  tags: always
  copy:
    src: bsdkit-defaults.yml
    dest: /.bsdkit.yml
    owner: root
    group: wheel
    mode: "0600"

- name: Set root shell
  tags:
    - configure
  user:
    name: root
    shell: /bin/csh

Switch root shell back to '/bin/csh'.
Switch root shell back to '/bin/csh'.
