---
- name: Setting user for iterm-preferences
  set_fact:
    iterm_preferences_user: "{{ __iterm_preferences_user }}"
  when: iterm_preferences_user is not defined

- name: Setting path for iterm-preferences
  set_fact:
    iterm_preferences_path: "/Users/{{ iterm_preferences_user }}/.iterm_preferences"
  when: iterm_preferences_path is not defined

- name: Setting plist file for iterm-preferences
  set_fact:
    iterm_plist_file: "/Users/{{ iterm_preferences_user }}/Library/Preferences/com.googlecode.iterm2.plist"
  when: iterm_plist_file is not defined
---
- name: Setting user for iterm-preferences
  set_fact:
    iterm_preferences_user: "{{ __iterm_preferences_user }}"
  when: iterm_preferences_user is not defined

- name: Setting path for iterm-preferences
  set_fact:
    iterm_preferences_path: "/Users/{{ iterm_preferences_user }}/.iterm-preferences"
  when: iterm_preferences_path is not defined

- name: Setting plist file for iterm-preferences
  set_fact:
    iterm_plist_file: "/Users/{{ iterm_preferences_user }}/Library/Preferences/com.googlecode.iterm2.plist"
  when: iterm_plist_file is not defined
Use a - instead of _for the iterm-preferences
Use a - instead of _for the iterm-preferences
