jasonwc / setup Goto Github PK
View Code? Open in Web Editor NEWAnsible Playbooks for setting up WSL/Multipass VMs
Ansible Playbooks for setting up WSL/Multipass VMs
TASK [dev : Install Erlang] ********************************************************************************************
fatal: [wsl]: FAILED! => {"changed": true, "cmd": "asdf install erlang ref:master", "delta": "0:00:03.299104", "end": "2019-07-19 18:22:05.702832", "msg": "non-zero return code", "rc": 1, "start": "2019-07-19 18:22:02.403728", "stderr": "", "stderr_lines": [], "stdout": "Checking out Erlang/OTP git repository from https://github.com/erlang/otp.git...\nError cloning local git repository", "stdout_lines": ["Checking out Erlang/OTP git repository from https://github.com/erlang/otp.git...", "Error cloning local git repository"]}
TASK [ops : Get installed krew plugins] ********************************************************************************************************************
fatal: [wsl]: FAILED! => {"changed": true, "cmd": ["kubectl", "krew", "list"], "delta": "0:00:00.065498", "end": "2021-05-16 18:41:12.734422", "msg": "non-zero return code", "rc": 1, "start": "2021-05-16 18:41:12.668924", "stderr": "Error: unknown command \"krew\" for \"kubectl\"\nRun 'kubectl --help' for usage.", "stderr_lines": ["Error: unknown command \"krew\" for \"kubectl\"", "Run 'kubectl --help' for usage."], "stdout": "", "stdout_lines": []}
Need to make sure I'm reloading
TASK [dev : Clone asdf] ************************************************************************************************changed: [wsl]
TASK [dev : Add asdf to shell] *****************************************************************************************changed: [wsl]
TASK [dev : Get installed asdf plugins] ********************************************************************************fatal: [wsl]: FAILED! => {"changed": false, "cmd": "asdf plugin-list", "msg": "[Errno 2] No such file or directory", "rc": 2}
...ignoring
TASK [dev : Add asdf plugins] ******************************************************************************************fatal: [wsl]: FAILED! => {"msg": "The conditional check 'item|string not in asdf_plugins.stdout_lines' failed. The error was: error while evaluating conditional (item|string not in asdf_plugins.stdout_lines): Unable to look up a name or access an attribute in template string ({% if item|string not in asdf_plugins.stdout_lines %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/home/jason/setup/roles/dev/tasks/asdf.yml': line 19, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Add asdf plugins\n ^ here\n"}
PLAY RECAP *************************************************************************************************************wsl : ok=37 changed=26
This fails until you start a new shell and run ansible with that sourced. Need to figure out a graceful way to do this.
TASK [dev : Get installed asdf plugins] ********************************************************************************
fatal: [wsl]: FAILED! => {"changed": false, "cmd": "asdf plugin-list", "msg": "[Errno 13] Permission denied: b'asdf'", "rc": 13}
...ignoring
TASK [dev : Add asdf plugins] ******************************************************************************************
fatal: [wsl]: FAILED! => {"msg": "The conditional check 'item|string not in asdf_plugins.stdout_lines' failed. The error was: error while evaluating conditional (item|string not in asdf_plugins.stdout_lines): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/home/jasonwc/setup/roles/dev/tasks/asdf.yml': line 22, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Add asdf plugins\n ^ here\n"}
Guessing this is a similar shell issue.
I'd like to use this to setup my M1 Air.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.