Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edouard-lopez/laptop-provisioning
Quickly provision my laptop with preferred settings and configuration
https://github.com/edouard-lopez/laptop-provisioning
ansible dotfiles dotfiles-automation provisioning
Last synced: 6 days ago
JSON representation
Quickly provision my laptop with preferred settings and configuration
- Host: GitHub
- URL: https://github.com/edouard-lopez/laptop-provisioning
- Owner: edouard-lopez
- Created: 2021-09-03T12:24:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T09:47:22.000Z (10 months ago)
- Last Synced: 2024-05-02T00:47:17.444Z (8 months ago)
- Topics: ansible, dotfiles, dotfiles-automation, provisioning
- Language: Makefile
- Homepage:
- Size: 275 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Restore Laptop with Ansible
## Usage
1. Copy your SSH public key to `roles/deploy_ssh_keys/public_keys/` (_e.g._ `foo.pub`)
1. Deploy the SSH keys:```sh
make deploy-ssh-key
```1. Check the playbook
```sh
make check-playbook
```1. Create an **insecure file** to hold your vault password:
```sh
touch .secret.txt && chmod u=rw,go= .secret.txt
$EDITOR .secret.txt # add your vault password
```2. Create a vault to hold your `sudo` password
```sh
ansible-vault encrypt_string \
--vault-password-file=.secret.txt \
--stdin-name 'ansible_sudo_pass' \
--output .secret.yml
```3. Run the playbook
```sh
poetry shell
# specific tag(s)
make configure TAGS="foo,bar"# Top-level tags for roles
make configure-
```## Install
You can install everything you need with:
```sh
make # install requirements, dependencies and dev-dependencies
```## Debug a Task
Register your task's output with:
```diff
- name: Foo
shell: echo bar
+ register: result
```Then add a debug task after:
```diff
+- name: Print return information from the previous task
+ ansible.builtin.debug:
+ var: result
```## License
[MIT][MIT]
[MIT]: https://mit-license.org/