feat!: migrate to ansible

This commit is contained in:
Ivan R. 2024-01-13 16:42:43 +05:00
parent e2edd60c1f
commit e2d7ec1ae3
Signed by: lumin
GPG key ID: 927D3132247BDE4E
6 changed files with 26 additions and 20 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
inventory.ini
inventory.yaml
inventory.yml

View file

@ -1,4 +0,0 @@
#!/bin/sh
echo "Updating system..."
sudo pacman -Syu

View file

@ -1,7 +0,0 @@
#!/bin/sh
sudo pacman -S git
git config --global user.email "ordinarydev@protonmail.com"
git config --global user.name "Ivan Reshetnikov"
git config --global commit.gpgsign true

View file

@ -1,8 +0,0 @@
#!/bin/sh
echo "Installing neovim..."
sudo pacman -S neovim
echo "Cloning neovim configuration..."
mv ~/.config/nvim{,-old}
git clone git@github.com:ordinary-dev/ordinary-neovim.git ~/.config/nvim

View file

@ -1,3 +1,20 @@
# System from scratch
A set of scripts to configure my system.
A set of ansible scripts to configure my system.
## Example
```bash
ansible-playbook -i inventory.ini ping.yml [--connection=local]
```
Note that `inventory.ini` is not included in the repo.
## Inventory example
```ini
[od-hosts]
192.168.0.1
```

5
ping.yml Normal file
View file

@ -0,0 +1,5 @@
- name: Ping
hosts: od-hosts
tasks:
- name: Ping my hosts
ansible.builtin.ping: