Last active
October 5, 2020 20:00
-
-
Save Fusion/c45fdd8857c84440d55f to your computer and use it in GitHub Desktop.
Ansible playbook to provision your new Atom setup with your favorite plugins (exported using 'apm list -ip') -- run atom-packages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- set_fact: pkgname="{{item}}" | |
- name: Check whether package '{{item}}' already installed | |
shell: "apm list -ip | grep '{{item}}@' | wc -l" | |
register: installed | |
- name: Install '{{item}}' if necessary | |
shell: "apm install {{item}}" | |
when: installed.stdout=="0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Installing missing Atom packages | |
hosts: local | |
vars_files: | |
- req-packages.yml | |
tasks: | |
- include: atom-one-package.yml | |
with_items: "{{req_packages}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[local] | |
localhost ansible_connection=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
req_packages: | |
- change-tabs | |
- expose | |
- linter-crystal | |
- split-diff | |
- tidy-tabs | |
- advanced-open-file | |
- color-picker | |
- file-icons | |
- merge-conflicts | |
- stash-tabs | |
- todo-show | |
- aligner | |
- color-tabs | |
- git-blame | |
- minimap | |
- swackets | |
- tool-bar | |
- ask-stack | |
- crystal-block | |
- git-plus | |
- open-recent | |
- symbols-tree-view | |
- tool-bar-almighty | |
- atom-commander | |
- crystal-tools | |
- highlight-line | |
- pinned-tabs | |
- sync-settings | |
- vim-mode | |
- atom-ctags | |
- custom-invisibles | |
- highlight-selected | |
- project-manager | |
- tab-numbers | |
- atom-ungit | |
- docblockr | |
- language-crystal-actual | |
- redui-jm-syntax | |
- tab-switcher | |
- autocomplete-ctags | |
- ex-mode | |
- linter | |
- regex-railroad-diagram |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment