diff --git a/default.config.yml b/default.config.yml index 149b009..08d601e 100644 --- a/default.config.yml +++ b/default.config.yml @@ -17,6 +17,17 @@ dockitems_persist: [] # - name: "Sublime Text" # path: "/Applications/Sublime Text.app/" +# Set to 'true' to configure the Dock via dockutil. +configure_dock: false +dockitems_remove: [] +# - Launchpad +# - TV +# - Podcasts +# - 'App Store' +dockitems_persist: [] +# - name: "Sublime Text" +# path: "/Applications/Sublime Text.app/" + configure_sudoers: false sudoers_custom_config: '' # Example: diff --git a/main.yml b/main.yml index e7a2f46..9f3faad 100644 --- a/main.yml +++ b/main.yml @@ -52,6 +52,10 @@ when: configure_dock tags: ['dock'] + - import_tasks: tasks/dock.yml + when: configure_dock + tags: ['dock'] + - name: Run configured post-provision ansible task files. include_tasks: "{{ outer_item }}" loop_control: diff --git a/tasks/terminal.yml b/tasks/terminal.yml index 75aad5b..528aec4 100644 --- a/tasks/terminal.yml +++ b/tasks/terminal.yml @@ -6,16 +6,16 @@ changed_when: false check_mode: false -- name: ensure JJG-Term - block: - - name: transfer the file - copy: - src: files/terminal/JJG-Term.terminal - dest: /tmp/JJG-Term.terminal +- name: Ensure custom Terminal profile is added. + ansible.builtin.copy: + src: files/terminal/JJG-Term.terminal + dest: /tmp/JJG-Term.terminal + changed_when: false + when: "'JJG-Term' not in terminal_theme.stdout" - - name: Ensure custom Terminal profile is added. - command: open /tmp/JJG-Term.terminal - changed_when: false +- name: Ensure custom Terminal profile is added. + command: open /tmp/JJG-Term.terminal + changed_when: false when: "'JJG-Term' not in terminal_theme.stdout" # TODO: This doesn't work in Yosemite. Consider a different solution?